toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (id != null) {
json[r'Id'] = id;
}
if (name != null) {
json[r'Name'] = name;
}
if (imported != null) {
json[r'Imported'] = imported;
}
if (semanticType != null) {
json[r'SemanticType'] = semanticType;
}
if (unit != null) {
json[r'Unit'] = unit;
}
if (dataType != null) {
json[r'DataType'] = dataType;
}
return json;
}