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