toJson method
Implementation
Map<String, dynamic> toJson() {
final b = this.b;
final boolValue = this.boolValue;
final bs = this.bs;
final l = this.l;
final m = this.m;
final n = this.n;
final ns = this.ns;
final nullValue = this.nullValue;
final s = this.s;
final ss = this.ss;
return {
if (b != null) 'B': base64Encode(b),
if (boolValue != null) 'BOOL': boolValue,
if (bs != null) 'BS': bs.map(base64Encode).toList(),
if (l != null) 'L': l,
if (m != null) 'M': m,
if (n != null) 'N': n,
if (ns != null) 'NS': ns,
if (nullValue != null) 'NULL': nullValue,
if (s != null) 'S': s,
if (ss != null) 'SS': ss,
};
}