25 lines
721 B
Dart
Raw Normal View History

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 {
final String? uuid;
2024-11-11 22:07:26 +04:00
final String? displayName;
final String? displayIcon;
final String? description;
final String? developerName;
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);
}