/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2022-08-26 17:49:12
 * @LastEditTime : 2023-02-02 15:25:20
 * @Description  : Do not edit
 */
class CompanyCommunityModel {
  String? propertyCompanyId;
  String? propertyCompanyName;
  List<ListOfListOfCompanyCommunityModel>? list;

  CompanyCommunityModel({
    this.propertyCompanyId,
    this.propertyCompanyName,
    this.list,
  });

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

    propertyCompanyId = map['propertyCompanyId'];
    propertyCompanyName = map['propertyCompanyName'];
    list = List<ListOfListOfCompanyCommunityModel>.from((map["list"] ?? [])
        .map((x) => ListOfListOfCompanyCommunityModel.fromJson(x)));
  }

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

    json['propertyCompanyId'] = this.propertyCompanyId;
    json['propertyCompanyName'] = this.propertyCompanyName;
    json['list'] = List<dynamic>.from((list ?? []).map((x) => x.toJson()));

    return json;
  }
}

class ListOfListOfCompanyCommunityModel {
  String? communityId;
  String? communityName;
  List<dynamic>? builds;

  ListOfListOfCompanyCommunityModel({
    this.communityId,
    this.communityName,
    this.builds,
  });

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

    communityId = map['communityId'];
    communityName = map['communityName'];
    builds = map['builds'].cast<dynamic>();
  }

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

    json['communityId'] = this.communityId;
    json['communityName'] = this.communityName;
    json['builds'] = this.builds;

    return json;
  }
}
