class HomePageContentType { final int id; final String title; final String image; final String link; final bool marked; final List subtitles; final int? duration; const HomePageContentType({ required this.id, required this.title, required this.image, required this.link, required this.marked, required this.subtitles, this.duration, }); factory HomePageContentType.fromJson(Map json) => HomePageContentType( id: json['id'], title: json['title'], image: json['image'], link: json['link'], marked: json['marked'], subtitles: List.from(json['subtitles']), duration: json['duration'], ); }