/*
 * @Author: WuXiangNan
 * @Date: 2021-05-27 10:53:56
 * @LastEditors: WuXiangNan
 * @LastEditTime: 2021-06-02 17:11:13
 * @Description: 智能电表
 */

class IntelligentMeter {
  int? electricMeterRechargeTimes;
  double? electricMeterRechargeAmount;
  double? electricMeterMargin;
  double? electricMeterRechargeBalance;
  int? electricMeterArrearsDegree;
  double? electricMeterArrearsAmount;

  IntelligentMeter(
      {this.electricMeterRechargeTimes,
      this.electricMeterRechargeAmount,
      this.electricMeterMargin,
      this.electricMeterRechargeBalance,
      this.electricMeterArrearsDegree,
      this.electricMeterArrearsAmount});

  IntelligentMeter.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});
    electricMeterRechargeTimes = map['electricMeterRechargeTimes'];
    electricMeterRechargeAmount = map['electricMeterRechargeAmount'];
    electricMeterMargin = map['electricMeterMargin'];
    electricMeterRechargeBalance = map['electricMeterRechargeBalance'];
    electricMeterArrearsDegree = map['electricMeterArrearsDegree'];
    electricMeterArrearsAmount = map['electricMeterArrearsAmount'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();
    json['electricMeterRechargeTimes'] = this.electricMeterRechargeTimes;
    json['electricMeterRechargeAmount'] = this.electricMeterRechargeAmount;
    json['electricMeterMargin'] = this.electricMeterMargin;
    json['electricMeterRechargeBalance'] = this.electricMeterRechargeBalance;
    json['electricMeterArrearsDegree'] = this.electricMeterArrearsDegree;
    json['electricMeterArrearsAmount'] = this.electricMeterArrearsAmount;

    return json;
  }
}
