23 lines
676 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 BossAttributesDataDto {
final String? id;
final String? title;
final String? imageUrl;
final String? description;
const BossAttributesDataDto({this.id,this.title, this.imageUrl, this.description});
factory BossAttributesDataDto.fromJson(Map<String, dynamic> json) =>
_$BossAttributesDataDtoFromJson(json);
}