SalesReports.fromJson constructor

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

Implementation

factory SalesReports.fromJson(Map<String, dynamic> json) => SalesReports(
      totalSales: json["total_sales"],
      netSales: json["net_sales"],
      averageSales: json["average_sales"],
      totalOrders: json["total_orders"],
      totalItems: json["total_items"],
      totalTax: json["total_tax"],
      totalShipping: json["total_shipping"],
      totalRefunds: json["total_refunds"],
      totalDiscount: json["total_discount"],
      totalsGroupedBy: json["totals_grouped_by"],
      totals: json['totals'],
      totalCustomers: json["total_customers"],
      links: Links.fromJson(json["_links"]),
    );