toJson method

String toJson()

Encode to json

Implementation

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