class ScrapVehicleDetailListModel {
  ScrapVehicleDetailListModel(
      {this.id,
      this.createDate,
      this.scrapId,
      this.stockDetailId,
      this.stockDetail,
      this.car,
      this.amount,
      this.carId,
      this.reason,
      this.img});

  String id;
  String createDate;
  String scrapId;
  dynamic stockDetailId;
  dynamic stockDetail;
  Car car;
  double amount;
  String carId;
  dynamic reason;
  String img;

  factory ScrapVehicleDetailListModel.fromJson(Map<String, dynamic> json) =>
      ScrapVehicleDetailListModel(
        id: json["id"],
        createDate: json["createDate"],
        scrapId: json["scrapId"],
        stockDetailId: json["stockDetailId"],
        stockDetail: json["stockDetail"],
        car: Car.fromJson(json["car"]),
        amount: json["amount"],
        carId: json["carId"],
        reason: json["reason"],
        img: json['img'],
      );

  Map<String, dynamic> toJson() => {
        "id": id,
        "createDate": createDate,
        "scrapId": scrapId,
        "stockDetailId": stockDetailId,
        "stockDetail": stockDetail,
        "car": car.toJson(),
        "amount": amount,
        "carId": carId,
        "reason": reason,
        "img": img,
      };
}

class Car {
  Car({
    this.id,
    this.createDate,
    this.carCode,
    this.carNum,
    this.equipmentId,
    this.engineNum,
    this.dateProduction,
    this.power,
    this.weight,
    this.carStateId,
    this.frameNum,
    this.chargeUserId,
    this.assetNumber,
    this.batchNumber,
    this.brand,
    this.color,
    this.currentMaintainDate,
    this.dateUsed,
    this.hasInsurance,
    this.nextMaintainDate,
    this.remark,
    this.retirementDate,
    this.totalMass,
    this.currentMaintenanceTime,
    this.model,
    this.dateCreated,
    this.orgCode,
    this.teamNum,
    this.imUsername,
    this.imPassword,
    this.quotaGroupCode,
    this.chassisBrand,
    this.manufacturerId,
    this.chargeUserTel,
    this.referencePrices,
    this.installDate,
    this.specificPower,
    this.img,
    this.qrCode,
    this.chassisType,
    this.chargeUser,
    this.tempId,
    this.countryId,
    this.type,
    this.expiryDate,
    this.lastMaintainDate,
    this.film,
    this.extraStatusOfCar,
    this.carNumTypeId,
    this.carLevelId,
    this.companyName,
    this.departmentOrgcode,
    this.departmentName,
    this.obdProtocolCode,
  });

  String id;
  dynamic createDate;
  dynamic carCode;
  String carNum;
  String equipmentId;
  String engineNum;
  String dateProduction;
  dynamic power;
  dynamic weight;
  String carStateId;
  String frameNum;
  dynamic chargeUserId;
  dynamic assetNumber;
  dynamic batchNumber;
  String brand;
  String color;
  dynamic currentMaintainDate;
  dynamic dateUsed;
  int hasInsurance;
  dynamic nextMaintainDate;
  String remark;
  String retirementDate;
  double totalMass;
  String currentMaintenanceTime;
  String model;
  String dateCreated;
  String orgCode;
  dynamic teamNum;
  dynamic imUsername;
  dynamic imPassword;
  dynamic quotaGroupCode;
  dynamic chassisBrand;
  String manufacturerId;
  dynamic chargeUserTel;
  double referencePrices;
  String installDate;
  dynamic specificPower;
  dynamic img;
  String qrCode;
  String chassisType;
  String chargeUser;
  String tempId;
  String countryId;
  String type;
  dynamic expiryDate;
  dynamic lastMaintainDate;
  dynamic film;
  dynamic extraStatusOfCar;
  dynamic carNumTypeId;
  String carLevelId;
  dynamic companyName;
  dynamic departmentOrgcode;
  dynamic departmentName;
  dynamic obdProtocolCode;

  factory Car.fromJson(Map<String, dynamic> json) => Car(
        id: json["id"],
        createDate: json["createDate"],
        carCode: json["carCode"],
        carNum: json["carNum"],
        equipmentId: json["equipmentId"],
        engineNum: json["engineNum"],
        dateProduction: json["dateProduction"],
        power: json["power"],
        weight: json["weight"],
        carStateId: json["carStateId"],
        frameNum: json["frameNum"],
        chargeUserId: json["chargeUserId"],
        assetNumber: json["assetNumber"],
        batchNumber: json["batchNumber"],
        brand: json["brand"],
        color: json["color"],
        currentMaintainDate: json["currentMaintainDate"],
        dateUsed: json["dateUsed"],
        hasInsurance: json["hasInsurance"],
        nextMaintainDate: json["nextMaintainDate"],
        remark: json["remark"],
        retirementDate: json["retirementDate"],
        totalMass: json["totalMass"],
        currentMaintenanceTime: json["currentMaintenanceTime"],
        model: json["model"],
        dateCreated: json["dateCreated"],
        orgCode: json["orgCode"],
        teamNum: json["teamNum"],
        imUsername: json["imUsername"],
        imPassword: json["imPassword"],
        quotaGroupCode: json["quotaGroupCode"],
        chassisBrand: json["chassisBrand"],
        manufacturerId: json["manufacturerId"],
        chargeUserTel: json["chargeUserTel"],
        referencePrices: json["referencePrices"],
        installDate: json["installDate"],
        specificPower: json["specificPower"],
        img: json["img"],
        qrCode: json["qrCode"],
        chassisType: json["chassisType"],
        chargeUser: json["chargeUser"],
        tempId: json["tempId"],
        countryId: json["countryId"],
        type: json["type"],
        expiryDate: json["expiryDate"],
        lastMaintainDate: json["lastMaintainDate"],
        film: json["film"],
        extraStatusOfCar: json["extraStatusOfCar"],
        carNumTypeId: json["carNumTypeId"],
        carLevelId: json["carLevelId"],
        companyName: json["companyName"],
        departmentOrgcode: json["departmentOrgcode"],
        departmentName: json["departmentName"],
        obdProtocolCode: json["obdProtocolCode"],
      );

  Map<String, dynamic> toJson() => {
        "id": id,
        "createDate": createDate,
        "carCode": carCode,
        "carNum": carNum,
        "equipmentId": equipmentId,
        "engineNum": engineNum,
        "dateProduction": dateProduction,
        "power": power,
        "weight": weight,
        "carStateId": carStateId,
        "frameNum": frameNum,
        "chargeUserId": chargeUserId,
        "assetNumber": assetNumber,
        "batchNumber": batchNumber,
        "brand": brand,
        "color": color,
        "currentMaintainDate": currentMaintainDate,
        "dateUsed": dateUsed,
        "hasInsurance": hasInsurance,
        "nextMaintainDate": nextMaintainDate,
        "remark": remark,
        "retirementDate": retirementDate,
        "totalMass": totalMass,
        "currentMaintenanceTime": currentMaintenanceTime,
        "model": model,
        "dateCreated": dateCreated,
        "orgCode": orgCode,
        "teamNum": teamNum,
        "imUsername": imUsername,
        "imPassword": imPassword,
        "quotaGroupCode": quotaGroupCode,
        "chassisBrand": chassisBrand,
        "manufacturerId": manufacturerId,
        "chargeUserTel": chargeUserTel,
        "referencePrices": referencePrices,
        "installDate": installDate,
        "specificPower": specificPower,
        "img": img,
        "qrCode": qrCode,
        "chassisType": chassisType,
        "chargeUser": chargeUser,
        "tempId": tempId,
        "countryId": countryId,
        "type": type,
        "expiryDate": expiryDate,
        "lastMaintainDate": lastMaintainDate,
        "film": film,
        "extraStatusOfCar": extraStatusOfCar,
        "carNumTypeId": carNumTypeId,
        "carLevelId": carLevelId,
        "companyName": companyName,
        "departmentOrgcode": departmentOrgcode,
        "departmentName": departmentName,
        "obdProtocolCode": obdProtocolCode,
      };
}
