toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "total_sales": totalSales,
      "net_sales": netSales,
      "average_sales": averageSales,
      "total_orders": totalOrders,
      "total_items": totalItems,
      "total_tax": totalTax,
      "total_shipping": totalShipping,
      "total_refunds": totalRefunds,
      "total_discount": totalDiscount,
      "totals_grouped_by": totalsGroupedBy,
      "totals": totals.toJson(),
      "total_customers": totalCustomers,
      "_links": links!.toJson(),
    };