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