class RepairDetailModel {
  String? id;
  String? description;
  String? regionName;
  String? regionSortName;
  String? region;
  String? regionSort;
  String? name;
  String? mobile;
  String? headPortrait;
  String? buildName;
  String? unitName;
  String? houseName;
  String? houseId;
  List<dynamic>? photos;
  String? statusName;
  String? status;
  String? createAt;
  List<ProcessOfRepairDetailModel>? process;
  num? evaluationScore;
  String? dealPerson;
  String? dealPersonMobile;
  String? rejectReason;
  String? communityName;
  String? address;
  String? qrName;
  bool? paidService;
  String? serviceFeeId;
  dynamic serviceFee;
  String? dealPersonId;
  String? linkType;
  String? linkId;
  String? sortId;
  String? internalSortId;
  String? internalSortName;
  String? sortName;
  String? businessTypeId;
  String? businessTypeName;
  String? exPlatformId;
  String? exPlatformStatus;
  dynamic dispatched;
  String? remark;
  String? mailToName;
  String? appointedTime;
  String? tag;
  String? tagMsg;
  String? communityId;
  String? backTrackingAt;
  bool? readState;

  RepairDetailModel({
    this.remark,
    this.id,
    this.description,
    this.regionName,
    this.regionSortName,
    this.region,
    this.regionSort,
    this.name,
    this.mobile,
    this.headPortrait,
    this.buildName,
    this.unitName,
    this.houseName,
    this.houseId,
    this.photos,
    this.statusName,
    this.status,
    this.createAt,
    this.process,
    this.evaluationScore,
    this.dealPerson,
    this.dealPersonMobile,
    this.rejectReason,
    this.communityName,
    this.address,
    this.qrName,
    this.paidService,
    this.serviceFeeId,
    this.serviceFee,
    this.dealPersonId,
    this.linkType,
    this.linkId,
    this.sortId,
    this.internalSortId,
    this.internalSortName,
    this.sortName,
    this.businessTypeId,
    this.businessTypeName,
    this.exPlatformId,
    this.exPlatformStatus,
    this.dispatched,
    this.mailToName,
    this.appointedTime,
    this.tag,
    this.tagMsg,
    this.communityId,
    this.backTrackingAt,
    this.readState,
  });

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

    id = map['id'];
    remark = map['remark'];
    description = map['description'];
    regionName = map['regionName'];
    regionSortName = map['regionSortName'];
    region = map['region'];
    regionSort = map['regionSort'];
    name = map['name'];
    mobile = map['mobile'];
    headPortrait = map['headPortrait'];
    buildName = map['buildName'];
    unitName = map['unitName'];
    houseName = map['houseName'];
    houseId = map['houseId'];
    photos = map['photos'].cast<dynamic>();
    statusName = map['statusName'];
    status = map['status'];
    createAt = map['createAt'];
    process = List<ProcessOfRepairDetailModel>.from((map["process"] ?? [])
        .map((x) => ProcessOfRepairDetailModel.fromJson(x)));
    evaluationScore = map['evaluationScore'];
    dealPerson = map['dealPerson'];
    dealPersonMobile = map['dealPersonMobile'];
    rejectReason = map['rejectReason'];
    communityName = map['communityName'];
    address = map['address'];
    qrName = map['qrName'];
    paidService = map['paidService'];
    serviceFeeId = map['serviceFeeId'];
    serviceFee = map['serviceFee'];
    dealPersonId = map['dealPersonId'];
    linkType = map['linkType'];
    linkId = map['linkId'];
    sortId = map['sortId'];
    internalSortId = map['internalSortId'];
    internalSortName = map['internalSortName'];
    sortName = map['sortName'];
    businessTypeId = map['businessTypeId'];
    businessTypeName = map['businessTypeName'];
    exPlatformId = map['exPlatformId'];
    exPlatformStatus = map['exPlatformStatus'];
    dispatched = map['dispatched'];
    mailToName = map['mailToName'];
    appointedTime = map['appointedTime'];
    tag = map['tag'];
    tagMsg = map['tagMsg'];
    communityId = map['communityId'];
    backTrackingAt = map['backTrackingAt'];
    readState = map['readState'];
  }

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

    json['id'] = this.id;
    json['remark'] = this.remark;
    json['description'] = this.description;
    json['regionName'] = this.regionName;
    json['regionSortName'] = this.regionSortName;
    json['region'] = this.region;
    json['regionSort'] = this.regionSort;
    json['name'] = this.name;
    json['mobile'] = this.mobile;
    json['headPortrait'] = this.headPortrait;
    json['buildName'] = this.buildName;
    json['unitName'] = this.unitName;
    json['houseName'] = this.houseName;
    json['houseId'] = this.houseId;
    json['photos'] = this.photos;
    json['statusName'] = this.statusName;
    json['status'] = this.status;
    json['createAt'] = this.createAt;
    json['process'] =
        List<dynamic>.from((process ?? []).map((x) => x.toJson()));
    json['evaluationScore'] = this.evaluationScore;
    json['dealPerson'] = this.dealPerson;
    json['dealPersonMobile'] = this.dealPersonMobile;
    json['rejectReason'] = this.rejectReason;
    json['communityName'] = this.communityName;
    json['address'] = this.address;
    json['qrName'] = this.qrName;
    json['paidService'] = this.paidService;
    json['serviceFeeId'] = this.serviceFeeId;
    json['serviceFee'] = this.serviceFee;
    json['dealPersonId'] = this.dealPersonId;
    json['linkType'] = this.linkType;
    json['linkId'] = this.linkId;
    json['sortId'] = this.sortId;
    json['internalSortId'] = this.internalSortId;
    json['internalSortName'] = this.internalSortName;
    json['sortName'] = this.sortName;
    json['businessTypeId'] = this.businessTypeId;
    json['businessTypeName'] = this.businessTypeName;
    json['exPlatformId'] = this.exPlatformId;
    json['exPlatformStatus'] = this.exPlatformStatus;
    json['dispatched'] = this.dispatched;
    json['mailToName'] = this.mailToName;
    json['appointedTime'] = this.appointedTime;
    json['tag'] = this.tag;
    json['tagMsg'] = this.tagMsg;
    json['communityId'] = this.communityId;
    json['backTrackingAt'] = this.backTrackingAt;
    json['readState'] = this.readState;

    return json;
  }
}

class ProcessOfRepairDetailModel {
  String? event;
  String? eventFrom;
  String? createAt;
  String? status;
  String? behavior;

  ProcessOfRepairDetailModel({
    this.event,
    this.eventFrom,
    this.createAt,
    this.status,
    this.behavior,
  });

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

    event = map['event'];
    eventFrom = map['eventFrom'];
    createAt = map['createAt'];
    status = map['status'];
  }

  toJson() {}
}
