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