toJson method

String toJson()

Convert to JSON string

Implementation

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