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