/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2022-01-19 16:44:35
 * @LastEditTime : 2022-04-18 09:46:16
 * @Description  : Do not edit
 */
class IntelligentTotalModel {

  String? id;
  String? communityId;
  String? communityName;
  num? electricityTotal;
  num? topUpTotal;
  num? initialAmount;
  num? initialMargin;
  num? prePayFee;
  String? feeName;
  String? prePayType;


  IntelligentTotalModel({
    this.id,
    this.communityId,
    this.communityName,
    this.electricityTotal,
    this.topUpTotal,
    this.initialAmount,
    this.initialMargin,
    this.prePayFee,
    this.prePayType,
    this.feeName,
  });

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

    id = map['id'];
    communityId = map['communityId'];
    communityName = map['communityName'];
    electricityTotal = map['electricityTotal'];
    topUpTotal = map['topUpTotal'];
    initialAmount = map['initialAmount'];
    initialMargin = map['initialMargin'];
    prePayFee = map['prePayFee'];
    prePayType = map['prePayType'];
    feeName = map['feeName'];
  }

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

    json['id'] = this.id;
    json['communityId'] = this.communityId;
    json['communityName'] = this.communityName;
    json['electricityTotal'] = this.electricityTotal;
    json['topUpTotal'] = this.topUpTotal;
    json['initialAmount'] = this.initialAmount;
    json['initialMargin'] = this.initialMargin;
    json['prePayFee'] = this.prePayFee;
    json['prePayType'] = this.prePayType;
    json['feeName'] = this.feeName;

    return json;
  }
}
