encode method

String encode()

Convenience: encode to a JSON string for transport.

Implementation

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