toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'AssetModelId'] = assetModelId;
json[r'Name'] = name;
json[r'GroupName'] = groupName;
if (groupType != null) {
json[r'GroupType'] = groupType;
}
json[r'DataType'] = dataType;
if (semanticType != null) {
json[r'SemanticType'] = semanticType;
}
if (unit != null) {
json[r'Unit'] = unit;
}
return json;
}