toJson method

String toJson()

Convert the object to json.

Implementation

String toJson()=>jsonEncode(toMap());