History.fromJson constructor

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

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);
}