toJson method

String toJson()

toJson is the method to convert the class to a json.

Implementation

String toJson() => json.encode(toMap());