toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'boolValue': ?boolValue,
  if (doubleValue case final $1?) 'doubleValue': encodeDouble($1),
  'int64Value': ?int64Value?.toString(),
  'stringValue': ?stringValue,
  'boolArrayValue': ?boolArrayValue?.toJson(),
  'doubleArrayValue': ?doubleArrayValue?.toJson(),
  'int64ArrayValue': ?int64ArrayValue?.toJson(),
  'stringArrayValue': ?stringArrayValue?.toJson(),
  if (bytesValue case final $1?) 'bytesValue': encodeBytes($1),
  'structValue': ?structValue?.toJson(),
  'metadata': ?metadata?.toJson(),
};