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