import 'package:app_hit_a_wod/src/models/discount.model.dart';
import 'package:json_annotation/json_annotation.dart';

part 'box_order_line.model.g.dart';

@JsonSerializable()
class BoxOrderLine {

  BoxOrderLine();

  factory BoxOrderLine.fromJson(Map<String, dynamic> json) => _$BoxOrderLineFromJson(json);
  Map<String, dynamic> toJson() => _$BoxOrderLineToJson(this);

  int id;
  int box_order_id;
  int box_product_variant_id;
  int user_subscription_id;
  int price;
  int quantity;
  double subtotal;
  double vat;
  double total;
  DateTime created_at;
  DateTime updated_at;
  Discount discount;

}