2024-11-11 22:07:26 +04:00
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'characters_dto.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable(createToJson: false)
|
|
|
|
class CharactersDto {
|
|
|
|
final List<CharacterDto>? data;
|
|
|
|
|
|
|
|
const CharactersDto({this.data});
|
|
|
|
|
|
|
|
factory CharactersDto.fromJson(Map<String, dynamic> json) => _$CharactersDtoFromJson(json);
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonSerializable(createToJson: false)
|
|
|
|
class CharacterDto {
|
2024-12-12 16:20:42 +04:00
|
|
|
final String? uuid;
|
2024-11-11 22:07:26 +04:00
|
|
|
final String? displayName;
|
|
|
|
final String? displayIcon;
|
|
|
|
final String? description;
|
|
|
|
final String? developerName;
|
|
|
|
|
2024-12-12 16:20:42 +04:00
|
|
|
const CharacterDto({this.uuid, this.displayName, this.displayIcon, this.description, this.developerName});
|
2024-11-11 22:07:26 +04:00
|
|
|
|
|
|
|
factory CharacterDto.fromJson(Map<String, dynamic> json) => _$CharacterDtoFromJson(json);
|
|
|
|
}
|