encode method

String encode()

Encode json and return as String

Implementation

String encode() {
  return json.encode(toJson());
}