fromJson static method
Implementation
static PrintifyOrderModel fromJson(Map<String, dynamic> json) =>
PrintifyOrderModel(
id: json['id'],
address_to: json['address_to'] == null
? null
: PrintifyAddress.fromJson(json['address_to']),
line_items: json['line_items'] == null
? null
: List.from(json['line_items'])
.map((e) => PrintifyOrderLineItem.fromJson(e))
.toList(),
metadata: json['metadata'],
total_price: json['total_price'],
total_shipping: json['total_shipping'],
total_tax: json['total_tax'],
status: json['status'],
method: json['method'],
shipments: json['shipments'] == null
? null
: List.from(json['shipments'])
.map((e) => PrintifyShipmentModel.fromJson(e))
.toList(),
created_at: json['created_at'],
sent_to_production_at: json['sent_to_production_at'],
fulfilled_at: json['fulfilled_at'],
);