WatchList.fromJson constructor

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

Implementation

factory WatchList.fromJson(Map<String, dynamic> json) => WatchList(
  watching: (json['watching'] as List).map((e) => e as CaseFolded).toList(),
  online: (json['online'] as List).map((e) => e as CaseFolded).toList(),
);