toJson method

String toJson()

It converts the object to a map.

Implementation

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