fromJson static method

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

Implementation

static PrintifyOrderLineItem fromJson(Map<String, dynamic> json) =>
    PrintifyOrderLineItem(
      product_id: json['product_id'],
      quantity: json['quantity'],
      variant_id: json['variant_id'],
      print_provider_id: json['print_provider_id'],
      cost: json['cost'],
      shipping_cost: json['shipping_cost'],
      status: json['status'],
      sent_to_production_at: json['sent_to_production_at'],
      fulfilled_at: json['fulfilled_at'],
      metadata: json['metadata'] == null ? null : json['metadata'],
    );