@override Object toJson() => { if (modelRoutingPreference case final modelRoutingPreference?) 'modelRoutingPreference': modelRoutingPreference.toJson(), };