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