class CommunityDetailModel {
  String? id;
  String? name;
  String? enterpriseCode;
  dynamic districtId;
  dynamic districtName;
  String? propertyCompanyId;
  String? propertyCompanyName;
  String? managementId;
  String? managementName;
  String? provinceCode;
  String? cityCode;
  String? districtCode;
  String? address;
  num? longitude;
  num? latitude;
  num? buildNum;
  num? unitNum;
  num? houseNum;
  num? residentNum;
  String? type;
  String? logo;
  String? summary;

  CommunityDetailModel({
    this.id,
    this.name,
    this.enterpriseCode,
    this.districtId,
    this.districtName,
    this.propertyCompanyId,
    this.propertyCompanyName,
    this.managementId,
    this.managementName,
    this.provinceCode,
    this.cityCode,
    this.districtCode,
    this.address,
    this.longitude,
    this.latitude,
    this.buildNum,
    this.unitNum,
    this.houseNum,
    this.residentNum,
    this.type,
    this.logo,
    this.summary,
  });

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

    id = map['id'];
    name = map['name'];
    enterpriseCode = map['enterpriseCode'];
    districtId = map['districtId'];
    districtName = map['districtName'];
    propertyCompanyId = map['propertyCompanyId'];
    propertyCompanyName = map['propertyCompanyName'];
    managementId = map['managementId'];
    managementName = map['managementName'];
    provinceCode = map['provinceCode'];
    cityCode = map['cityCode'];
    districtCode = map['districtCode'];
    address = map['address'];
    longitude = map['longitude'];
    latitude = map['latitude'];
    buildNum = map['buildNum'];
    unitNum = map['unitNum'];
    houseNum = map['houseNum'];
    residentNum = map['residentNum'];
    type = map['type'];
    logo = map['logo'];
    summary = map['summary'];
  }

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

    json['id'] = this.id;
    json['name'] = this.name;
    json['enterpriseCode'] = this.enterpriseCode;
    json['districtId'] = this.districtId;
    json['districtName'] = this.districtName;
    json['propertyCompanyId'] = this.propertyCompanyId;
    json['propertyCompanyName'] = this.propertyCompanyName;
    json['managementId'] = this.managementId;
    json['managementName'] = this.managementName;
    json['provinceCode'] = this.provinceCode;
    json['cityCode'] = this.cityCode;
    json['districtCode'] = this.districtCode;
    json['address'] = this.address;
    json['longitude'] = this.longitude;
    json['latitude'] = this.latitude;
    json['buildNum'] = this.buildNum;
    json['unitNum'] = this.unitNum;
    json['houseNum'] = this.houseNum;
    json['residentNum'] = this.residentNum;
    json['type'] = this.type;
    json['logo'] = this.logo;
    json['summary'] = this.summary;

    return json;
  }
}
