import 'package:json_annotation/json_annotation.dart'; part 'characters_dto.g.dart'; @JsonSerializable(createToJson: false) class CharactersDto { final List? data; const CharactersDto({this.data}); factory CharactersDto.fromJson(Map json) => _$CharactersDtoFromJson(json); } @JsonSerializable(createToJson: false) class CharacterDto { final String? uuid; final String? displayName; final String? displayIcon; final String? description; final String? developerName; const CharacterDto({this.uuid, this.displayName, this.displayIcon, this.description, this.developerName}); factory CharacterDto.fromJson(Map json) => _$CharacterDtoFromJson(json); }