toJson method
Implementation
Map<String, dynamic> toJson() {
final dataSource = this.dataSource;
final dataType = this.dataType;
final defaultValue = this.defaultValue;
final description = this.description;
final name = this.name;
final variableType = this.variableType;
return {
if (dataSource != null) 'dataSource': dataSource,
if (dataType != null) 'dataType': dataType,
if (defaultValue != null) 'defaultValue': defaultValue,
if (description != null) 'description': description,
if (name != null) 'name': name,
if (variableType != null) 'variableType': variableType,
};
}