An annotation for the code generator to know that this class needs the JSON serialization logic to be generated.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → Map< String, dynamic>
toJsonis the convention for a class to declare support for serialization to JSON. The implementation simply calls the private, generated helper method
) → String
A string representation of this object. [...]