SessionFilters.fromJson constructor

SessionFilters.fromJson(
  1. Object? json
)

Implementation

factory SessionFilters.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SessionFilters(
      countries: (map['countries'] as List<Object?>)
          .map((el) => (el as String))
          .toList());
}