LineItems.fromJson constructor

LineItems.fromJson(
  1. Map<String, dynamic> json
)

Implementation

LineItems.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  name = json['name'];
  productId = json['product_id'];
  variationId = json['variation_id'];
  quantity = json['quantity'];
  taxClass = json['tax_class'];
  subtotal = json['subtotal'];
  subtotalTax = json['subtotal_tax'];
  total = json['total'];
  totalTax = json['total_tax'];
  taxes = (json['taxes'] as List).map((i) => Taxes.fromJson(i)).toList();
  metaData =
      (json['meta_data'] as List).map((i) => MetaData.fromJson(i)).toList();
  sku = json['sku'];
  price = json['price'].toString();
}