History.fromJson constructor
Implementation
factory History.fromJson(Map<String, dynamic> json) {
List<HistoryItem> historyList = List<HistoryItem>.from(
json['history'].map((item) => HistoryItem.fromJson(item)).toList());
return History(history: historyList);
}