You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.toJson() is a method that works "magically" when using jsonEncode in the SDK. When serializing specifically with that encoder it will be called automatically.
You can enable the behavior you are looking for by configuring to enable explicitToJson.
Analyzing the generated file in the examples (example.g.dart) I founded this piece of code:
Should Orders be assigned directly? Should they not be assigned iterating and converting to json?
Example:
The text was updated successfully, but these errors were encountered: