34 lines
983 B
Dart
Raw Normal View History

2024-10-29 01:49:32 +04:00
import 'package:json_annotation/json_annotation.dart';
part 'bosses_dto.g.dart';
@JsonSerializable(createToJson: false)
2024-11-25 23:02:19 +04:00
class BossesDto {
2024-10-29 01:49:32 +04:00
final List<BossAttributesDataDto>? data;
const BossesDto({this.data});
factory BossesDto.fromJson(Map<String, dynamic> json) => _$BossesDtoFromJson(json);
}
@JsonSerializable(createToJson: false)
2024-11-25 23:02:19 +04:00
class BossesDataDto {
2024-10-29 01:49:32 +04:00
final String? id;
final String? type;
final BossAttributesDataDto? attributes;
const BossesDataDto({this.id, this.type, this.attributes});
factory BossesDataDto.fromJson(Map<String, dynamic> json) => _$BossesDataDtoFromJson(json);
}
@JsonSerializable(createToJson: false)
2024-11-25 23:02:19 +04:00
class BossAttributesDataDto {
final String? id;
2024-10-29 01:49:32 +04:00
final String? title;
final String? imageUrl;
final String? description;
2024-11-25 23:02:19 +04:00
const BossAttributesDataDto({this.id,this.title, this.imageUrl, this.description});
2024-10-29 01:49:32 +04:00
2024-11-25 23:02:19 +04:00
factory BossAttributesDataDto.fromJson(Map<String, dynamic> json) =>
_$BossAttributesDataDtoFromJson(json);
}