encode method

String encode()

Serialize to JSON string for sending over the wire.

Implementation

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