class ExtinguishAgentModel {
  ExtinguishAgentModel({
    this.amount,
    this.equipmentDetailId,
    this.img,
    this.unitName,
    this.equipmentName,
    this.carId,
  });

  double amount;
  String equipmentDetailId;
  String img;
  String unitName;
  String equipmentName;
  String carId;

  factory ExtinguishAgentModel.fromJson(Map<String, dynamic> json) =>
      ExtinguishAgentModel(
        amount:  json["amount"],
        equipmentDetailId: json["equipmentDetailId"],
        img: json["img"],
        unitName: json["unitName"],
        equipmentName: json["equipmentName"],
        carId: json["car_id"],
      );

  Map<String, dynamic> toJson() => {
        "amount": amount,
        "equipmentDetailId": equipmentDetailId,
        "img": img,
        "unitName": unitName,
        "equipmentName": equipmentName,
        "car_id": carId,
      };
}
