toBase64 method

String toBase64()

Returns the Event object as a base64-encoded JSON string

Implementation

String toBase64() {
  return base64Encode(utf8.encode(json.encode(toJson())));
}