toJson method

String toJson()

Converts the current instance to a JSON string.

Implementation

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