toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final arrayValue = this.arrayValue;
  final blobValue = this.blobValue;
  final booleanValue = this.booleanValue;
  final doubleValue = this.doubleValue;
  final isNull = this.isNull;
  final longValue = this.longValue;
  final stringValue = this.stringValue;
  return {
    if (arrayValue != null) 'arrayValue': arrayValue,
    if (blobValue != null) 'blobValue': base64Encode(blobValue),
    if (booleanValue != null) 'booleanValue': booleanValue,
    if (doubleValue != null) 'doubleValue': doubleValue,
    if (isNull != null) 'isNull': isNull,
    if (longValue != null) 'longValue': longValue,
    if (stringValue != null) 'stringValue': stringValue,
  };
}