import 'alarm_info.dart';

class ConfirmAlam extends AlarmInfo {
  String alamContent;
  int isBatch;

  ConfirmAlam();

  ConfirmAlam.fromParams({this.isBatch, this.alamContent}) : super();

  ConfirmAlam.fromJson(jsonRes) {
    confirmUserName = jsonRes['confirmUserName'];
    createDate = jsonRes['createDate'];
    endDate = jsonRes['endDate'];
    eqimg = jsonRes['eqimg'];
    equipmentSpecificId = jsonRes['equipmentSpecificId'];
    fireEquipmentCode = jsonRes['fireEquipmentCode'];
    fireEquipmentName = jsonRes['fireEquipmentName'];
    fireEquipmentSpecificIndexName = jsonRes['fireEquipmentSpecificIndexName'];
    id = jsonRes['id'];
    isFirm = jsonRes['isFirm'];
    startDate = jsonRes['startDate'];
    status = jsonRes['status'];
    systemIds = jsonRes['systemIds'];
    type = jsonRes['type'];
    resolveResult = jsonRes['resolveResult'];
    alamReason = jsonRes['alamReason'];
    confirmDate = jsonRes['confirmDate'];
    warehouseStructureName = jsonRes['warehouseStructureName'];
    alamContent = jsonRes['alamContent'];
    isBatch = jsonRes['isBatch'];
    equipmentSpecificAlarmId = jsonRes['equipmentSpecificAlarmId'];
  }

  dynamic toJson() {
    dynamic jsonRes = super.toJson();
    jsonRes['alamContent'] = alamContent;
    jsonRes['isBatch'] = isBatch;
    return jsonRes;
  }
}
