DeviceBatteryBean.fromJson constructor

DeviceBatteryBean.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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