toJson method

String toJson()

Serializes the instance to JSON.

Implementation

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