toJson method
Implementation
Map<String, dynamic> toJson() {
final dataType = this.dataType;
final binaryValue = this.binaryValue;
final stringValue = this.stringValue;
return {
'DataType': dataType,
if (binaryValue != null) 'BinaryValue': base64Encode(binaryValue),
if (stringValue != null) 'StringValue': stringValue,
};
}