toJson method
Implementation
@override
Object toJson() {
return {
if (boolValue != null) 'boolValue': boolValue,
if (doubleValue != null) 'doubleValue': encodeDouble(doubleValue),
if (int64Value != null) 'int64Value': encodeInt64(int64Value),
if (stringValue != null) 'stringValue': stringValue,
if (boolArrayValue != null) 'boolArrayValue': boolArrayValue!.toJson(),
if (doubleArrayValue != null)
'doubleArrayValue': doubleArrayValue!.toJson(),
if (int64ArrayValue != null) 'int64ArrayValue': int64ArrayValue!.toJson(),
if (stringArrayValue != null)
'stringArrayValue': stringArrayValue!.toJson(),
if (bytesValue != null) 'bytesValue': encodeBytes(bytesValue),
if (structValue != null) 'structValue': structValue!.toJson(),
if (metadata != null) 'metadata': metadata!.toJson(),
};
}