toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.orderCode != null) {
json[r'orderCode'] = this.orderCode;
} else {
json[r'orderCode'] = null;
}
if (this.deviceVersion != null) {
json[r'deviceVersion'] = this.deviceVersion;
} else {
json[r'deviceVersion'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.groupId != null) {
json[r'groupId'] = this.groupId;
} else {
json[r'groupId'] = null;
}
if (this.ingestionConfigData != null) {
json[r'ingestionConfigData'] = this.ingestionConfigData;
} else {
json[r'ingestionConfigData'] = null;
}
if (this.applications != null) {
json[r'applications'] = this.applications;
} else {
json[r'applications'] = null;
}
if (this.manufacturer != null) {
json[r'manufacturer'] = this.manufacturer;
} else {
json[r'manufacturer'] = null;
}
if (this.assetsTransform != null) {
json[r'assetsTransform'] = this.assetsTransform;
} else {
json[r'assetsTransform'] = null;
}
if (this.supportedGateways != null) {
json[r'supportedGateways'] = this.supportedGateways;
} else {
json[r'supportedGateways'] = null;
}
if (this.specialUuid != null) {
json[r'specialUuid'] = this.specialUuid;
} else {
json[r'specialUuid'] = null;
}
json[r'deviceModels'] = this.deviceModels;
return json;
}