31 lines
945 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'bosses_dto.g.dart';
@JsonSerializable(createToJson: false)
class BossesDto{
final List<BossAttributesDataDto>? data;
const BossesDto({this.data});
factory BossesDto.fromJson(Map<String, dynamic> json) => _$BossesDtoFromJson(json);
}
@JsonSerializable(createToJson: false)
class BossesDataDto{
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)
class BossAttributesDataDto{
final String? title;
final String? imageUrl;
final String? description;
const BossAttributesDataDto({this.title, this.imageUrl, this.description});
factory BossAttributesDataDto.fromJson(Map<String, dynamic> json) => _$BossAttributesDataDtoFromJson(json);
}