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