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

38 lines
1.3 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'spells_dto.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
SpellDto _$SpellDtoFromJson(Map<String, dynamic> json) => SpellDto(
data: (json['data'] as List<dynamic>?)
?.map((e) => SpellDataDto.fromJson(e as Map<String, dynamic>))
.toList(),
);
SpellDataDto _$SpellDataDtoFromJson(Map<String, dynamic> json) => SpellDataDto(
id: json['id'] as String?,
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?,
);