toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = this.name;
json[r'serialCode'] = this.serialCode;
json[r'status'] = this.status;
if (this.description != null) {
json[r'description'] = this.description;
}
if (this.gateway != null) {
json[r'gateway'] = this.gateway;
}
if (this.deviceModel != null) {
json[r'deviceModel'] = this.deviceModel;
}
return json;
}