import 'package:json_annotation/json_annotation.dart'; part 'mangas_dto.g.dart'; @JsonSerializable(createToJson: false) class MangasDto { final List? data; const MangasDto({this.data}); factory MangasDto.fromJson(Map json) => _$MangasDtoFromJson(json); } @JsonSerializable(createToJson: false) class MangaDataDto { final String? id; final String? type; final String? title; final String? status; final double? score; final int? scored_by; final MangaDataImagesDto? images; const MangaDataDto(this.title, this.status, this.score, this.scored_by, this.images, {this.id, this.type}); factory MangaDataDto.fromJson(Map json) => _$MangaDataDtoFromJson(json); } @JsonSerializable(createToJson: false) class MangaDataImagesDto { final MangaDataImagesJPGDto? jpg; const MangaDataImagesDto({this.jpg}); factory MangaDataImagesDto.fromJson(Map json) => _$MangaDataImagesDtoFromJson(json); } @JsonSerializable(createToJson: false) class MangaDataImagesJPGDto { final String? image_url; const MangaDataImagesJPGDto({this.image_url}); factory MangaDataImagesJPGDto.fromJson(Map json) => _$MangaDataImagesJPGDtoFromJson(json); }