factory DeviceMethod.fromJson(Map<String, dynamic> json) { return DeviceMethod( deviceType: json['deviceType'] as String?, methodName: json['methodName'] as String?, ); }