toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final b = this.b;
  final bs = this.bs;
  final n = this.n;
  final ns = this.ns;
  final s = this.s;
  final ss = this.ss;
  return {
    if (b != null) 'B': base64Encode(b),
    if (bs != null) 'BS': bs.map(base64Encode).toList(),
    if (n != null) 'N': n,
    if (ns != null) 'NS': ns,
    if (s != null) 'S': s,
    if (ss != null) 'SS': ss,
  };
}