/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2022-12-27 16:26:12
 * @LastEditTime : 2023-02-02 15:25:44
 * @Description  : Do not edit
 */

class DeviceStatisticsModel {
  String? name;
  String? id;
  num? open;
  num? close;

  DeviceStatisticsModel({
    this.name,
    this.id,
    this.open,
    this.close,
  });

  DeviceStatisticsModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    name = map['name'];
    id = map['id'];
    open = map['open'];
    close = map['close'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['name'] = this.name;
    json['id'] = this.id;
    json['open'] = this.open;
    json['close'] = this.close;

    return json;
  }
}
