VariantCombination.fromMap constructor

VariantCombination.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory VariantCombination.fromMap(Map<String, dynamic> json) => VariantCombination(
  id: json["id"],
  name: json["name"],
  code: json["code"],
  currentPrice: json["current_price"],
  salesPrice: json["sales_price"],
  onSales: json["on_sales"],
  supplierPrice: json["supplier_price"],
  markup: json["markup"],
  sku: json["sku"],
  barcode: json["barcode"],
  quantity: json["quantity"],
  trackQuantity: json["track_quantity"],
  reorderPoint: json["reorder_point"],
  active: json["active"],
  isSubscription: json["is_subscription"],
  maxBillingCount: json["max_billing_count"],
  billingCycle: json["billing_cycle"],
  isDefault: json["is_default"],
);