toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'name'] = this.name;
json[r'groupId'] = this.groupId;
json[r'serialCode'] = this.serialCode;
json[r'status'] = this.status;
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.balenaId != null) {
json[r'balenaId'] = this.balenaId;
} else {
json[r'balenaId'] = null;
}
if (this.ingestionConfigData != null) {
json[r'ingestionConfigData'] = this.ingestionConfigData;
} else {
json[r'ingestionConfigData'] = null;
}
if (this.operationalIngestionConfig != null) {
json[r'operationalIngestionConfig'] = this.operationalIngestionConfig;
} else {
json[r'operationalIngestionConfig'] = null;
}
if (this.gatewayModel != null) {
json[r'gatewayModel'] = this.gatewayModel;
} else {
json[r'gatewayModel'] = null;
}
if (this.plant != null) {
json[r'plant'] = this.plant;
} else {
json[r'plant'] = null;
}
json[r'devices'] = this.devices;
if (this.license != null) {
json[r'license'] = this.license;
} else {
json[r'license'] = null;
}
if (this.balenaStatus != null) {
json[r'balenaStatus'] = this.balenaStatus;
} else {
json[r'balenaStatus'] = null;
}
if (this.balenaLastSeen != null) {
json[r'balenaLastSeen'] = this.balenaLastSeen;
} else {
json[r'balenaLastSeen'] = null;
}
return json;
}