toJson method
Implementation
@override
Object toJson() => {
if (nullValue case final $1?) 'nullValue': $1.toJson(),
'booleanValue': ?booleanValue,
'integerValue': ?integerValue?.toString(),
if (doubleValue case final $1?) 'doubleValue': encodeDouble($1),
'timestampValue': ?timestampValue?.toJson(),
'stringValue': ?stringValue,
if (bytesValue case final $1?) 'bytesValue': encodeBytes($1),
'referenceValue': ?referenceValue,
'geoPointValue': ?geoPointValue?.toJson(),
'arrayValue': ?arrayValue?.toJson(),
'mapValue': ?mapValue?.toJson(),
'fieldReferenceValue': ?fieldReferenceValue,
'variableReferenceValue': ?variableReferenceValue,
'functionValue': ?functionValue?.toJson(),
'pipelineValue': ?pipelineValue?.toJson(),
};