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.version != null) {
json[r'version'] = this.version;
} else {
json[r'version'] = 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.protocol != null) {
json[r'protocol'] = this.protocol;
} else {
json[r'protocol'] = 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.manufacturer != null) {
json[r'manufacturer'] = this.manufacturer;
} else {
json[r'manufacturer'] = null;
}
if (this.specialUuid != null) {
json[r'specialUuid'] = this.specialUuid;
} else {
json[r'specialUuid'] = null;
}
return json;
}