class RepairDialogModel {
  String? repairId;
  List<DialogsOfRepairDialogModel>? dialogs;
  String? status;
  num? evaluationScore;
  String? evaluationContent;
  String? createTime;
  String? regionName;
  String? regionSortName;
  String? description;
  String? communityOrHouseName;
  String? statusName;
  String? name;
  String? mobile;
  dynamic qrName;
  String? houseName;
  String? headPortrait;

  RepairDialogModel({
    this.repairId,
    this.dialogs,
    this.status,
    this.evaluationScore,
    this.evaluationContent,
    this.createTime,
    this.regionName,
    this.regionSortName,
    this.description,
    this.communityOrHouseName,
    this.statusName,
    this.name,
    this.mobile,
    this.qrName,
    this.houseName,
    this.headPortrait,
  });

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

    repairId = map['repairId'];
    dialogs = List<DialogsOfRepairDialogModel>.from((map["dialogs"] ?? [])
        .map((x) => DialogsOfRepairDialogModel.fromJson(x)));
    status = map['status'];
    evaluationScore = map['evaluationScore'];
    evaluationContent = map['evaluationContent'];
    createTime = map['createTime'];
    regionName = map['regionName'];
    regionSortName = map['regionSortName'];
    description = map['description'];
    communityOrHouseName = map['communityOrHouseName'];
    statusName = map['statusName'];
    name = map['name'];
    mobile = map['mobile'];
    qrName = map['qrName'];
    houseName = map['houseName'];
    headPortrait = map['headPortrait'];
  }

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

    json['repairId'] = this.repairId;
    json['dialogs'] =
        List<dynamic>.from((dialogs ?? []).map((x) => x.toJson()));
    json['status'] = this.status;
    json['evaluationScore'] = this.evaluationScore;
    json['evaluationContent'] = this.evaluationContent;
    json['createTime'] = this.createTime;
    json['regionName'] = this.regionName;
    json['regionSortName'] = this.regionSortName;
    json['description'] = this.description;
    json['communityOrHouseName'] = this.communityOrHouseName;
    json['statusName'] = this.statusName;
    json['name'] = this.name;
    json['mobile'] = this.mobile;
    json['qrName'] = this.qrName;
    json['houseName'] = this.houseName;
    json['headPortrait'] = this.headPortrait;

    return json;
  }
}

class DialogsOfRepairDialogModel {
  String? createAt;
  List<ReportDialogsListOfDialogsOfRepairDialogModel>? reportDialogsList;

  DialogsOfRepairDialogModel({
    this.createAt,
    this.reportDialogsList,
  });

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

    createAt = map['createAt'];
    reportDialogsList =
        List<ReportDialogsListOfDialogsOfRepairDialogModel>.from(
            (map["reportDialogsList"] ?? []).map((x) =>
                ReportDialogsListOfDialogsOfRepairDialogModel.fromJson(x)));
  }

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

    json['createAt'] = this.createAt;
    json['reportDialogsList'] =
        List<dynamic>.from((reportDialogsList ?? []).map((x) => x.toJson()));

    return json;
  }
}

class ReportDialogsListOfDialogsOfRepairDialogModel {
  dynamic id;
  dynamic repairId;
  String? dialog;
  String? dialogFrom;
  String? statusName;
  dynamic createAt;
  dynamic createBy;
  dynamic updateAt;
  dynamic updateBy;
  dynamic userId;
  dynamic unionId;
  String? dialogType;
  String? headPortrait;
  String? userName;
  String? headType;

  ReportDialogsListOfDialogsOfRepairDialogModel({
    this.id,
    this.repairId,
    this.dialog,
    this.dialogFrom,
    this.statusName,
    this.createAt,
    this.createBy,
    this.updateAt,
    this.updateBy,
    this.userId,
    this.unionId,
    this.dialogType,
    this.headPortrait,
    this.userName,
    this.headType,
  });

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

    id = map['id'];
    repairId = map['repairId'];
    dialog = map['dialog'];
    dialogFrom = map['dialogFrom'];
    statusName = map['statusName'];
    createAt = map['createAt'];
    createBy = map['createBy'];
    updateAt = map['updateAt'];
    updateBy = map['updateBy'];
    userId = map['userId'];
    unionId = map['unionId'];
    dialogType = map['dialogType'];
    headPortrait = map['headPortrait'];
    userName = map['userName'];
    headType = map['headType'];
  }

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

    json['id'] = this.id;
    json['repairId'] = this.repairId;
    json['dialog'] = this.dialog;
    json['dialogFrom'] = this.dialogFrom;
    json['statusName'] = this.statusName;
    json['createAt'] = this.createAt;
    json['createBy'] = this.createBy;
    json['updateAt'] = this.updateAt;
    json['updateBy'] = this.updateBy;
    json['userId'] = this.userId;
    json['unionId'] = this.unionId;
    json['dialogType'] = this.dialogType;
    json['headPortrait'] = this.headPortrait;
    json['userName'] = this.userName;
    json['headType'] = this.headType;

    return json;
  }
}
