import 'package:PiliPlus/models_new/member/season_web/archive.dart'; import 'package:PiliPlus/models_new/member/season_web/page.dart'; class SeasonWebData { List? archives; Page? page; SeasonWebData({this.archives, this.page}); factory SeasonWebData.fromJson(Map json) => SeasonWebData( archives: (json['archives'] as List?) ?.map((e) => SeasonArchive.fromJson(e as Map)) .toList(), page: json['page'] == null ? null : Page.fromJson(json['page'] as Map), ); }