DeviceBatteryBean.fromJson constructor
Implementation
factory DeviceBatteryBean.fromJson(Map<String, dynamic> json) => DeviceBatteryBean(
type: json["type"],
subscribe: json["subscribe"] ?? false,
deviceBattery: json["deviceBattery"] ?? -1,
);