Content.fromMap constructor
Implementation
factory Content.fromMap(Map<String, dynamic> json) => Content(
createdAt: json["createdAt"],
updatedAt: json["updatedAt"],
userId: json["userId"],
id: json["id"],
reference: json["reference"],
orderDesc: json["order_desc"],
couponCode: json["coupon_code"],
platform: json["platform"],
currencyName: json["currency_name"],
currencyCode: json["currency_code"],
deliveryAddress: json["delivery_address"],
totalQty: json["total_qty"],
total: json["total"],
subtotal: json["subtotal"],
totalDiscount: json["total_discount"],
totalPaid: json["total_paid"],
balance: json["balance"],
totalMargin: json["total_margin"],
deliveryCharge: json["delivery_charge"],
vat: json["vat"],
status: json["status"],
offlineSale: json["offline_sale"],
manualSale: json["manual_sale"],
dateSynced: json["date_synced"],
viewed: json["viewed"],
items: json["items"] == null ? [] : List<Item>.from(json["items"]!.map((x) => Item.fromMap(x))),
channel: json["channel"],
customer: json["customer"] == null ? null : Customer.fromMap(json["customer"]),
staff: json["staff"],
delivery: json["delivery"] == null ? null : Delivery.fromMap(json["delivery"]),
);