@override Object toJson() { return { if (modelRoutingPreference != null) 'modelRoutingPreference': modelRoutingPreference!.toJson(), }; }