toJson method
toJson is the convention for a class to declare support for serialization
to JSON.
Implementation
String toJson() => toString();
toJson is the convention for a class to declare support for serialization
to JSON.
String toJson() => toString();