Delete.fromJson constructor
Implementation
factory Delete.fromJson(Map<String, dynamic> json) => Delete(
id: json["id"],
parentId: json["parent_id"],
number: json["number"],
orderKey: json["order_key"],
createdVia: json["created_via"],
version: json["version"],
status: json["status"],
currency: json["currency"],
dateCreated: DateTime.parse(json["date_created"]),
dateCreatedGmt: DateTime.parse(json["date_created_gmt"]),
dateModified: DateTime.parse(json["date_modified"]),
dateModifiedGmt: DateTime.parse(json["date_modified_gmt"]),
discountTotal: json["discount_total"],
discountTax: json["discount_tax"],
shippingTotal: json["shipping_total"],
shippingTax: json["shipping_tax"],
cartTax: json["cart_tax"],
total: json["total"],
totalTax: json["total_tax"],
pricesIncludeTax: json["prices_include_tax"],
customerId: json["customer_id"],
customerIpAddress: json["customer_ip_address"],
customerUserAgent: json["customer_user_agent"],
customerNote: json["customer_note"],
billing: Ing.fromJson(json["billing"]),
shipping: Ing.fromJson(json["shipping"]),
paymentMethod: json["payment_method"],
paymentMethodTitle: json["payment_method_title"],
transactionId: json["transaction_id"],
datePaid: json["date_paid"],
datePaidGmt: json["date_paid_gmt"],
dateCompleted: DateTime.parse(json["date_completed"]),
dateCompletedGmt: DateTime.parse(json["date_completed_gmt"]),
cartHash: json["cart_hash"],
metaData: List<MetaDatum>.from(
json["meta_data"].map((x) => MetaDatum.fromJson(x))),
lineItems: List<LineItem>.from(
json["line_items"].map((x) => LineItem.fromJson(x))),
taxLines: List<dynamic>.from(json["tax_lines"].map((x) => x)),
shippingLines: List<ShippingLine>.from(
json["shipping_lines"].map((x) => ShippingLine.fromJson(x))),
feeLines: List<dynamic>.from(json["fee_lines"].map((x) => x)),
couponLines: List<dynamic>.from(json["coupon_lines"].map((x) => x)),
refunds:
List<Refund>.from(json["refunds"].map((x) => Refund.fromJson(x))),
links: DeleteLinks.fromJson(json["_links"]),
);