PMD_Kouvshinoff_PIbd_31/lib/data/dtos/spells_dto.g.dart

55 lines
1.9 KiB
Dart
Raw Normal View History

2024-10-01 18:21:37 +04:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'spells_dto.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
2024-10-27 21:53:28 +04:00
SpellsDto _$SpellsDtoFromJson(Map<String, dynamic> json) => SpellsDto(
2024-10-01 18:21:37 +04:00
data: (json['data'] as List<dynamic>?)
?.map((e) => SpellDataDto.fromJson(e as Map<String, dynamic>))
.toList(),
2024-10-27 21:53:28 +04:00
meta: json['meta'] == null
? null
: MetaDto.fromJson(json['meta'] as Map<String, dynamic>),
);
MetaDto _$MetaDtoFromJson(Map<String, dynamic> json) => MetaDto(
pagination: json['pagination'] == null
? null
: PaginationDto.fromJson(json['pagination'] as Map<String, dynamic>),
);
PaginationDto _$PaginationDtoFromJson(Map<String, dynamic> json) =>
PaginationDto(
current: (json['current'] as num?)?.toInt(),
next: (json['next'] as num?)?.toInt(),
last: (json['last'] as num?)?.toInt(),
records: (json['records'] as num?)?.toInt(),
2024-10-01 18:21:37 +04:00
);
SpellDataDto _$SpellDataDtoFromJson(Map<String, dynamic> json) => SpellDataDto(
2024-10-27 21:53:28 +04:00
json['id'] as String,
2024-10-01 18:21:37 +04:00
type: json['type'] as String?,
attributes: json['attributes'] == null
? null
: SpellAttributesDataDto.fromJson(
json['attributes'] as Map<String, dynamic>),
);
SpellAttributesDataDto _$SpellAttributesDataDtoFromJson(
Map<String, dynamic> json) =>
SpellAttributesDataDto(
slug: json['slug'] as String?,
category: json['category'] as String?,
creator: json['creator'] as String?,
effect: json['effect'] as String?,
hand: json['hand'] as String?,
image: json['image'] as String?,
incantation: json['incantation'] as String?,
light: json['light'] as String?,
name: json['name'] as String?,
wiki: json['wiki'] as String?,
);