class VehicleTypeCountModel {
  VehicleTypeCountModel(
      {this.id,
      this.createDate,
      this.name,
      this.carNum,
      this.equipmentId,
      this.carState,
      this.brand,
      this.remark,
      this.standard,
      this.chassisBrand,
      this.manufacturerId,
      this.chassisCountry,
      this.country,
      this.isImport,
      this.qrCode,
      this.maintenanceCycle,
      this.cccAuth,
      this.creatorId,
      this.orgCode,
      this.companyName,
      this.departmentOrgcode,
      this.departmentName,
      this.iotCode,
      this.img,
      this.video,
      this.certification,
      this.instruction,
      this.equipment,
      this.manufacturerName,
      this.countryName,
      this.chassisCountryName,
      this.manufacturerInfo,
      this.carPropertyList,
      this.journals,
      this.ext,
      this.equipmentsOnCar,
      this.unitName});

  String id;
  String createDate;
  String name;
  String carNum;
  String equipmentId;
  String carState;
  String brand;
  dynamic remark;
  String standard;
  String chassisBrand;
  String manufacturerId;
  String chassisCountry;
  String country;
  bool isImport;
  String qrCode;
  dynamic maintenanceCycle;
  bool cccAuth;
  dynamic creatorId;
  String orgCode;
  dynamic companyName;
  dynamic departmentOrgcode;
  dynamic departmentName;
  String iotCode;
  dynamic img;
  dynamic video;
  dynamic certification;
  dynamic instruction;
  Equipment equipment;
  dynamic manufacturerName;
  dynamic countryName;
  dynamic chassisCountryName;
  dynamic manufacturerInfo;
  dynamic carPropertyList;
  dynamic journals;
  dynamic ext;
  dynamic equipmentsOnCar;
  dynamic unitName;
  VehicleTypeCountModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    createDate = json['createDate'];
    name = json['name'];
    carNum = json['carNum'];
    equipmentId = json['equipmentId'];
    carState = json['carState'];
    brand = json['brand'];
    remark = json['remark'];
    standard = json['standard'];
    chassisBrand = json['chassisBrand'];
    manufacturerId = json['manufacturerId'];
    chassisCountry = json['chassisCountry'];
    country = json['country'];
    isImport = json['isImport'];
    qrCode = json['qrCode'];
    maintenanceCycle = json['maintenanceCycle'];
    cccAuth = json['cccAuth'];
    creatorId = json['creatorId'];
    orgCode = json['orgCode'];
    companyName = json['companyName'];
    departmentOrgcode = json['departmentOrgcode'];
    departmentName = json['departmentName'];
    iotCode = json['iotCode'];
    img = json['img'];
    video = json['video'];
    certification = json['certification'];
    instruction = json['instruction'];
    equipment = json['equipment'] != dynamic
        ? new Equipment.fromJson(json['equipment'])
        : dynamic;
    manufacturerName = json['manufacturerName'];
    countryName = json['countryName'];
    chassisCountryName = json['chassisCountryName'];
    manufacturerInfo = json['manufacturerInfo'];
    carPropertyList = json['carPropertyList'];
    journals = json['journals'];
    ext = json['ext'];
    equipmentsOnCar = json['equipmentsOnCar'];
    unitName = json['unitName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['createDate'] = this.createDate;
    data['name'] = this.name;
    data['carNum'] = this.carNum;
    data['equipmentId'] = this.equipmentId;
    data['carState'] = this.carState;
    data['brand'] = this.brand;
    data['remark'] = this.remark;
    data['standard'] = this.standard;
    data['chassisBrand'] = this.chassisBrand;
    data['manufacturerId'] = this.manufacturerId;
    data['chassisCountry'] = this.chassisCountry;
    data['country'] = this.country;
    data['isImport'] = this.isImport;
    data['qrCode'] = this.qrCode;
    data['maintenanceCycle'] = this.maintenanceCycle;
    data['cccAuth'] = this.cccAuth;
    data['creatorId'] = this.creatorId;
    data['orgCode'] = this.orgCode;
    data['companyName'] = this.companyName;
    data['departmentOrgcode'] = this.departmentOrgcode;
    data['departmentName'] = this.departmentName;
    data['iotCode'] = this.iotCode;
    data['img'] = this.img;
    data['video'] = this.video;
    data['certification'] = this.certification;
    data['instruction'] = this.instruction;
    if (this.equipment != dynamic) {
      data['equipment'] = this.equipment.toJson();
    }
    data['manufacturerName'] = this.manufacturerName;
    data['countryName'] = this.countryName;
    data['chassisCountryName'] = this.chassisCountryName;
    data['manufacturerInfo'] = this.manufacturerInfo;
    data['carPropertyList'] = this.carPropertyList;
    data['journals'] = this.journals;
    data['ext'] = this.ext;
    data['equipmentsOnCar'] = this.equipmentsOnCar;
    return data;
  }
}

class Equipment {
  String id;
  String createDate;
  String name;
  String code;
  String categoryId;
  dynamic country;
  dynamic maintenanceCycle;
  dynamic checkCycle;
  String remark;
  dynamic managementStyle;
  dynamic reviserId;
  dynamic dateUpdated;
  dynamic createrId;
  String unitId;
  dynamic unit;
  dynamic madeIn;
  dynamic manufacturer;
  String img;
  dynamic video;
  dynamic markSpecification;
  dynamic supplierId;
  dynamic prefQuota;
  dynamic equipmentCategory;
  dynamic equPropertyList;

  Equipment(
      {this.id,
      this.createDate,
      this.name,
      this.code,
      this.categoryId,
      this.country,
      this.maintenanceCycle,
      this.checkCycle,
      this.remark,
      this.managementStyle,
      this.reviserId,
      this.dateUpdated,
      this.createrId,
      this.unitId,
      this.unit,
      this.madeIn,
      this.manufacturer,
      this.img,
      this.video,
      this.markSpecification,
      this.supplierId,
      this.prefQuota,
      this.equipmentCategory,
      this.equPropertyList});

  Equipment.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    createDate = json['createDate'];
    name = json['name'];
    code = json['code'];
    categoryId = json['categoryId'];
    country = json['country'];
    maintenanceCycle = json['maintenanceCycle'];
    checkCycle = json['checkCycle'];
    remark = json['remark'];
    managementStyle = json['managementStyle'];
    reviserId = json['reviserId'];
    dateUpdated = json['dateUpdated'];
    createrId = json['createrId'];
    unitId = json['unitId'];
    unit = json['unit'];
    madeIn = json['madeIn'];
    manufacturer = json['manufacturer'];
    img = json['img'];
    video = json['video'];
    markSpecification = json['markSpecification'];
    supplierId = json['supplierId'];
    prefQuota = json['prefQuota'];
    equipmentCategory = json['equipmentCategory'];
    equPropertyList = json['equPropertyList'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['createDate'] = this.createDate;
    data['name'] = this.name;
    data['code'] = this.code;
    data['categoryId'] = this.categoryId;
    data['country'] = this.country;
    data['maintenanceCycle'] = this.maintenanceCycle;
    data['checkCycle'] = this.checkCycle;
    data['remark'] = this.remark;
    data['managementStyle'] = this.managementStyle;
    data['reviserId'] = this.reviserId;
    data['dateUpdated'] = this.dateUpdated;
    data['createrId'] = this.createrId;
    data['unitId'] = this.unitId;
    data['unit'] = this.unit;
    data['madeIn'] = this.madeIn;
    data['manufacturer'] = this.manufacturer;
    data['img'] = this.img;
    data['video'] = this.video;
    data['markSpecification'] = this.markSpecification;
    data['supplierId'] = this.supplierId;
    data['prefQuota'] = this.prefQuota;
    data['equipmentCategory'] = this.equipmentCategory;
    data['equPropertyList'] = this.equPropertyList;
    return data;
  }
}
