GetNavigationHistoryResult.fromJson constructor

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

Implementation

factory GetNavigationHistoryResult.fromJson(Map<String, dynamic> json) {
  return GetNavigationHistoryResult(
    currentIndex: json['currentIndex'] as int,
    entries: (json['entries'] as List)
        .map((e) => NavigationEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}