class AlarmInfo {
  String confirmUserName;
  String createDate;
  String endDate;
  String eqimg;
  String equipmentSpecificId;
  String fireEquipmentCode;
  String fireEquipmentName;
  String fireEquipmentSpecificIndexName;
  String id;
  String isFirm;
  String startDate;
  String status;
  String systemIds;
  String type;
  String warehouseStructureName;

  String confirmType;
  String resolveResult;
  String alamReason;
  String confirmDate;
  String equipmentSpecificAlarmId;
  String equipmentSpecificCode;
  String equipmentSpecificIndexName;
  String confirmTypeName;
  String confirmUserId;
   String confirmUserNamename;
  AlarmInfo();

  AlarmInfo.fromParams(
      {this.confirmType,
      this.confirmUserName,
      this.createDate,
      this.endDate,
      this.eqimg,
      this.equipmentSpecificId,
      this.fireEquipmentCode,
      this.fireEquipmentName,
      this.fireEquipmentSpecificIndexName,
      this.id,
      this.isFirm,
      this.startDate,
      this.status,
      this.systemIds,
      this.type,
      this.warehouseStructureName,
      this.resolveResult,
      this.alamReason,
      this.confirmDate,
      this.equipmentSpecificAlarmId,
      this.equipmentSpecificCode,
      this.equipmentSpecificIndexName,
      this.confirmTypeName,
      this.confirmUserId,
      this.confirmUserNamename
      });

  AlarmInfo.fromJson(jsonRes) {
    confirmType = jsonRes['confirmType'];
    confirmUserName = jsonRes['confirmUserName'];
    createDate = jsonRes['createDate'];
    endDate = jsonRes['endDate'];
    eqimg = jsonRes['eqimg'];
    equipmentSpecificId = jsonRes['equipmentSpecificId'];
    fireEquipmentCode = jsonRes['fireEquipmentCode'];
    fireEquipmentName = jsonRes['fireEquipmentName'];
    fireEquipmentSpecificIndexName = jsonRes['alarmContent'];
    id = jsonRes['id'];
    isFirm = jsonRes['isFirm'];
    startDate = jsonRes['startDate'];
    status = jsonRes['status'].toString();
    systemIds = jsonRes['systemIds'];
    type = jsonRes['type'];
    resolveResult = jsonRes['resolveResult'];
    alamReason = jsonRes['alarmReason'];
    confirmDate = jsonRes['confirmDate'];
    warehouseStructureName = jsonRes['warehouseStructureName'];
    equipmentSpecificAlarmId = jsonRes['equipmentSpecificAlarmId'];
    equipmentSpecificCode = jsonRes['equipmentSpecificCode'];
    equipmentSpecificIndexName = jsonRes['equipmentSpecificIndexName'];
    confirmTypeName= jsonRes['confirmTypeName'];
    confirmUserId=jsonRes['confirmUserId'];
    confirmUserNamename=jsonRes['confirmUserNamename'];
  }

  dynamic toJson() {
    dynamic jsonRes = {};
    jsonRes['confirmUserName'] = confirmUserName;
    jsonRes['createDate'] = createDate;
    jsonRes['endDate'] = endDate;
    jsonRes['eqimg'] = eqimg;
    jsonRes['equipmentSpecificId'] = equipmentSpecificId;
    jsonRes['fireEquipmentCode'] = fireEquipmentCode;
    jsonRes['fireEquipmentName'] = fireEquipmentName;
    jsonRes['fireEquipmentSpecificIndexName'] = fireEquipmentSpecificIndexName;
    jsonRes['id'] = id;
    jsonRes['isFirm'] = isFirm;
    jsonRes['startDate'] = startDate;
    jsonRes['status'] = status;
    jsonRes['systemIds'] = systemIds;
    jsonRes['type'] = type;
    jsonRes['resolveResult'] = resolveResult;
    jsonRes['alarmReason'] = alamReason;
    jsonRes['confirmDate'] = confirmDate;
    jsonRes['warehouseStructureName'] = warehouseStructureName;
    jsonRes['confirmType'] = confirmType;
    jsonRes['equipmentSpecificAlarmId'] = equipmentSpecificAlarmId;
    jsonRes['equipmentSpecificCode'] = equipmentSpecificCode;
    jsonRes['equipmentSpecificIndexName'] = equipmentSpecificIndexName;
     confirmUserId=jsonRes['confirmUserId'];
      confirmUserNamename=jsonRes['confirmUserNamename'];
    return jsonRes;
  }

  AlarmInfo.detailsToJson(jsonRes) {
    // 详情返回数据渲染
    // confirmType = jsonRes['confirmType'] ?? '';
    confirmUserName = jsonRes['confirmUserName'];
    createDate = jsonRes['createDate'];
    endDate = jsonRes['endDate'];
    eqimg = jsonRes['eqimg'];
    equipmentSpecificId = jsonRes['equipmentSpecificId'];
    fireEquipmentCode = jsonRes['equipmentCode'];
    fireEquipmentName = jsonRes['equipmentName'];
    fireEquipmentSpecificIndexName = jsonRes['alarmContent'];
    id = jsonRes['id'];
    isFirm = jsonRes['isFirm'];
    startDate = jsonRes['startDate'];
    status = jsonRes['status'].toString();
    systemIds = jsonRes['systemIds'];
    type = jsonRes['type'];
    resolveResult = jsonRes['resolveResult'];
    alamReason = jsonRes['alarmReason'];
    confirmDate = jsonRes['confirmDate'];
    warehouseStructureName = jsonRes['alarmPlace'];
    equipmentSpecificAlarmId = jsonRes['equipmentSpecificAlarmId'];
    equipmentSpecificCode = jsonRes['equipmentSpecificCode'];
    equipmentSpecificIndexName = jsonRes['equipmentSpecificIndexName'];
    confirmTypeName= jsonRes['confirmTypeName'];
    confirmType = jsonRes['confirmType'];
     confirmUserId=jsonRes['confirmUserId'];
      confirmUserNamename=jsonRes['confirmUserNamename'];
  }
}
