toJson method

String toJson()

toJson is the convention for a class to declare support for serialization to JSON.

Implementation

String toJson() => toString();