toJson method
Implementation
@override
Map<String, dynamic> toJson() {
var json = super.toJson();
if (tenantId != null) {
json['tenantId'] = tenantId!.toJson();
}
if (customerId != null) {
json['customerId'] = customerId!.toJson();
}
json['name'] = name;
json['type'] = type;
if (label != null) {
json['label'] = label;
}
if (deviceProfileId != null) {
json['deviceProfileId'] = deviceProfileId!.toJson();
}
if (firmwareId != null) {
json['firmwareId'] = firmwareId!.toJson();
}
if (softwareId != null) {
json['softwareId'] = softwareId!.toJson();
}
json['deviceData'] = deviceData.toJson();
if (externalId != null) {
json['externalId'] = externalId!.toJson();
}
return json;
}