/*
 * @Author: WuXiangNan
 * @Date: 2021-05-26 14:25:37
 * @LastEditors: WuXiangNan
 * @LastEditTime: 2021-06-02 09:00:38
 * @Description: 项目数据
 */

class CommunityStatistics {
  String? communityCount;
  int? area;
  int? buildingCount;
  int? houseCount;
  int? householdCount;
  int? carCount;
  int? parkCount;
  int? electricMeterCount;
  int? waterMeterCount;
  int? publicMeterCount;
  int? historyArrearsAmount;
  int? arrearsAmount;

  CommunityStatistics(
      {this.communityCount,
      this.area,
      this.buildingCount,
      this.houseCount,
      this.householdCount,
      this.carCount,
      this.parkCount,
      this.electricMeterCount,
      this.waterMeterCount,
      this.publicMeterCount,
      this.historyArrearsAmount,
      this.arrearsAmount});

  CommunityStatistics.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});
    communityCount = map['communityCount'];
    area = map['area'];
    buildingCount = map['buildingCount'];
    houseCount = map['houseCount'];
    householdCount = map['householdCount'];
    carCount = map['carCount'];
    parkCount = map['parkCount'];
    electricMeterCount = map['electricMeterCount'];
    waterMeterCount = map['waterMeterCount'];
    publicMeterCount = map['publicMeterCount'];
    historyArrearsAmount = map['historyArrearsAmount'];
    arrearsAmount = map['arrearsAmount'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();
    json['communityCount'] = this.communityCount;
    json['area'] = this.area;
    json['buildingCount'] = this.buildingCount;
    json['houseCount'] = this.houseCount;
    json['householdCount'] = this.householdCount;
    json['carCount'] = this.carCount;
    json['parkCount'] = this.parkCount;
    json['electricMeterCount'] = this.electricMeterCount;
    json['waterMeterCount'] = this.waterMeterCount;
    json['publicMeterCount'] = this.publicMeterCount;
    json['historyArrearsAmount'] = this.historyArrearsAmount;
    json['arrearsAmount'] = this.arrearsAmount;

    return json;
  }
}
