diff --git a/lib/data/dtos/films_dto.g.dart b/lib/data/dtos/films_dto.g.dart new file mode 100644 index 0000000..3507b0c --- /dev/null +++ b/lib/data/dtos/films_dto.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'films_dto.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FilmsDto _$FilmsDtoFromJson(Map json) => FilmsDto( + total: (json['total'] as num).toInt(), + items: (json['items'] as List) + .map((e) => FilmDataDto.fromJson(e as Map)) + .toList(), + ); + +FilmDataDto _$FilmDataDtoFromJson(Map json) => FilmDataDto( + nameRu: json['nameRu'] as String, + year: (json['year'] as num).toInt(), + genres: (json['genres'] as List) + .map((e) => GenreDto.fromJson(e as Map)) + .toList(), + posterUrl: json['posterUrl'] as String, + ); + +GenreDto _$GenreDtoFromJson(Map json) => GenreDto( + genre: json['genre'] as String, + );