toJson method
Implementation
Map<String, dynamic> toJson() {
final deviceName = this.deviceName;
final description = this.description;
final iotThingName = this.iotThingName;
return {
'DeviceName': deviceName,
if (description != null) 'Description': description,
if (iotThingName != null) 'IotThingName': iotThingName,
};
}