/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2022-01-19 16:44:35
 * @LastEditTime : 2023-02-07 09:33:41
 * @Description  : Do not edit
 */
class IntelligentListModel {
  String? id;
  String? meterId;
  String? meterName;
  String? meterType;
  String? meterTypeName;
  num? currentAmount;
  String? updatedAt;
  num? currentMargin;
  num? powerOn;
  String? meterCode;
  String? roomNo;
  bool? isEnable;
  num? multiple;
  num? arrearsFee;

  IntelligentListModel({
    this.id,
    this.meterId,
    this.meterName,
    this.meterType,
    this.meterTypeName,
    this.currentAmount,
    this.updatedAt,
    this.currentMargin,
    this.powerOn,
    this.meterCode,
    this.roomNo,
    this.isEnable,
    this.multiple,
    this.arrearsFee,
  });

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

    id = map['id'];
    meterId = map['meterId'];
    meterName = map['meterName'];
    meterType = map['meterType'];
    meterTypeName = map['meterTypeName'];
    currentAmount = map['currentAmount'];
    updatedAt = map['updatedAt'];
    currentMargin = map['currentMargin'];
    powerOn = map['powerOn'];
    meterCode = map['meterCode'];
    roomNo = map['roomNo'];
    isEnable = map['isEnable'];
    multiple = map['multiple'];
    arrearsFee = map['arrearsFee'];
  }

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

    json['id'] = this.id;
    json['meterId'] = this.meterId;
    json['meterName'] = this.meterName;
    json['meterType'] = this.meterType;
    json['meterTypeName'] = this.meterTypeName;
    json['currentAmount'] = this.currentAmount;
    json['updatedAt'] = this.updatedAt;
    json['currentMargin'] = this.currentMargin;
    json['powerOn'] = this.powerOn;
    json['meterCode'] = this.meterCode;
    json['roomNo'] = this.roomNo;
    json['isEnable'] = this.isEnable;
    json['multiple'] = this.multiple;
    json['arrearsFee'] = this.arrearsFee;

    return json;
  }
}
