/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2022-10-10 11:07:32
 * @LastEditTime : 2022-10-10 11:08:01
 * @Description  : Do not edit
 */
class CompanyCommunityModel {
  List<CommunitiesOfCompanyCommunityModel>? communities;
  String? companyId;
  String? companyName;

  CompanyCommunityModel({
    this.communities,
    this.companyId,
    this.companyName,
  });

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

    communities = List<CommunitiesOfCompanyCommunityModel>.from(
        (map["communities"] ?? [])
            .map((x) => CommunitiesOfCompanyCommunityModel.fromJson(x)));
    companyId = map['companyId'];
    companyName = map['companyName'];
  }

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

    json['communities'] =
        List<dynamic>.from((communities ?? []).map((x) => x.toJson()));
    json['companyId'] = this.companyId;
    json['companyName'] = this.companyName;

    return json;
  }
}

class CommunitiesOfCompanyCommunityModel {
  String? communityId;
  String? communityName;

  CommunitiesOfCompanyCommunityModel({
    this.communityId,
    this.communityName,
  });

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

    communityId = map['communityId'];
    communityName = map['communityName'];
  }

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

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

    return json;
  }
}
