toBase64 method

String toBase64()

Implementation

String toBase64() {
  var json = jsonEncode(this.toMap());
  var bytes = utf8.encode(json);
  return base64.encode(bytes);
}