toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
if (this.category != null) {
json[r'category'] = this.category;
} else {
json[r'category'] = null;
}
if (this.categoryCode != null) {
json[r'categoryCode'] = this.categoryCode;
} else {
json[r'categoryCode'] = null;
}
if (this.typeCode != null) {
json[r'typeCode'] = this.typeCode;
} else {
json[r'typeCode'] = null;
}
if (this.modelName != null) {
json[r'modelName'] = this.modelName;
} else {
json[r'modelName'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
json[r'objectNames'] = this.objectNames;
json[r'lastValues'] = this.lastValues;
if (this.lastValueReceived != null) {
json[r'lastValueReceived'] = this.lastValueReceived!.toUtc().toIso8601String();
} else {
json[r'lastValueReceived'] = null;
}
if (this.receptionStatus != null) {
json[r'receptionStatus'] = this.receptionStatus;
} else {
json[r'receptionStatus'] = null;
}
return json;
}