toJson method
Convert to JSON map.
Implementation
Map<String, dynamic> toJson() => {
'previousTotal': previousTotal,
'currentTotal': currentTotal,
'costChange': costChange,
'costChangePercent': costChangePercent,
'previousItemCount': previousItemCount,
'currentItemCount': currentItemCount,
'itemCountChange': itemCountChange,
'direction': direction,
'unit': unit,
};