toMap method
Implementation
Map<String, dynamic> toMap() => {
"total_orders_count": totalOrdersCount,
"total_delivery_price": totalDeliveryPrice,
"price_diff_from_prev_week": totalBeforeDeliveryPrice,
"count_diff_from_prev_week": totalBeforeDeliveryCount,
"daily_stats": dailyStats == null
? []
: List<dynamic>.from(dailyStats!.map((x) => x.toMap())),
};