import type {Unit} from "~/types/unit";
import type {Label} from "~/types/label";

export class Variant {
  readonly id: number;
  weight: string;
  ean: string | null;
  name: string | null;
  description: string | null;
  ingredients: string | null;
  unit: Unit;
  label: Label | null;
  variant_description: string | null;
  topm_row: string | null;

  constructor(id: number, weight: string, ean: string|null, name: string|null,
              description:string|null, ingredients: string|null, unit: Unit,
              label: Label | null, variant_description: string | null, topm_row: string | null) {
    this.id = id;
    this.weight = weight;
    this.ean = ean;
    this.name = name;
    this.description = description;
    this.ingredients = ingredients;
    this.unit = unit;
    this.label = label;
    this.variant_description = variant_description;
    this.topm_row = topm_row;
  }
}
