class RepairEquipmentDetailModel {
  String? id;
  String? name;
  String? number;
  dynamic qrcodeId;
  String? category;
  String? type;
  String? buidingName;
  String? unitName;
  dynamic housefloor;
  String? houseName;
  String? status;
  String? productDate;
  String? productNumber;
  String? installDate;
  String? life;
  dynamic equipmentRoomName;
  String? manager;
  String? routinginspectionName;
  String? maintenancecodeName;
  dynamic scrpdate;
  String? location;
  String? communityId;
  dynamic communityName;
  String? routinginspectionId;
  String? maintenancecodeId;
  List<OpreateRecordsInfoOfRepairEquipmentDetailModel>? opreateRecordsInfo;

  RepairEquipmentDetailModel({
    this.id,
    this.name,
    this.number,
    this.qrcodeId,
    this.category,
    this.type,
    this.buidingName,
    this.unitName,
    this.housefloor,
    this.houseName,
    this.status,
    this.productDate,
    this.productNumber,
    this.installDate,
    this.life,
    this.equipmentRoomName,
    this.manager,
    this.routinginspectionName,
    this.maintenancecodeName,
    this.scrpdate,
    this.location,
    this.communityId,
    this.communityName,
    this.routinginspectionId,
    this.maintenancecodeId,
    this.opreateRecordsInfo,
  });

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

    id = map['id'];
    name = map['name'];
    number = map['number'];
    qrcodeId = map['qrcodeId'];
    category = map['category'];
    type = map['type'];
    buidingName = map['buidingName'];
    unitName = map['unitName'];
    housefloor = map['housefloor'];
    houseName = map['houseName'];
    status = map['status'];
    productDate = map['productDate'];
    productNumber = map['productNumber'];
    installDate = map['installDate'];
    life = map['life'];
    equipmentRoomName = map['equipmentRoomName'];
    manager = map['manager'];
    routinginspectionName = map['routinginspectionName'];
    maintenancecodeName = map['maintenancecodeName'];
    scrpdate = map['scrpdate'];
    location = map['location'];
    communityId = map['communityId'];
    communityName = map['communityName'];
    routinginspectionId = map['routinginspectionId'];
    maintenancecodeId = map['maintenancecodeId'];
    opreateRecordsInfo =
        List<OpreateRecordsInfoOfRepairEquipmentDetailModel>.from(
            (map["opreateRecordsInfo"] ?? []).map((x) =>
                OpreateRecordsInfoOfRepairEquipmentDetailModel.fromJson(x)));
  }

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

    json['id'] = this.id;
    json['name'] = this.name;
    json['number'] = this.number;
    json['qrcodeId'] = this.qrcodeId;
    json['category'] = this.category;
    json['type'] = this.type;
    json['buidingName'] = this.buidingName;
    json['unitName'] = this.unitName;
    json['housefloor'] = this.housefloor;
    json['houseName'] = this.houseName;
    json['status'] = this.status;
    json['productDate'] = this.productDate;
    json['productNumber'] = this.productNumber;
    json['installDate'] = this.installDate;
    json['life'] = this.life;
    json['equipmentRoomName'] = this.equipmentRoomName;
    json['manager'] = this.manager;
    json['routinginspectionName'] = this.routinginspectionName;
    json['maintenancecodeName'] = this.maintenancecodeName;
    json['scrpdate'] = this.scrpdate;
    json['location'] = this.location;
    json['communityId'] = this.communityId;
    json['communityName'] = this.communityName;
    json['routinginspectionId'] = this.routinginspectionId;
    json['maintenancecodeId'] = this.maintenancecodeId;
    json['opreateRecordsInfo'] =
        List<dynamic>.from((opreateRecordsInfo ?? []).map((x) => x.toJson()));

    return json;
  }
}

class OpreateRecordsInfoOfRepairEquipmentDetailModel {
  String? id;
  String? type;
  String? typeName;
  String? createdAt;

  OpreateRecordsInfoOfRepairEquipmentDetailModel({
    this.id,
    this.type,
    this.typeName,
    this.createdAt,
  });

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

    id = map['id'];
    type = map['type'];
    typeName = map['typeName'];
    createdAt = map['createdAt'];
  }

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

    json['id'] = this.id;
    json['type'] = this.type;
    json['typeName'] = this.typeName;
    json['createdAt'] = this.createdAt;

    return json;
  }
}
