// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'spells_dto.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

SpellsDto _$SpellsDtoFromJson(Map<String, dynamic> json) => SpellsDto(
      data: (json['data'] as List<dynamic>?)
          ?.map((e) => SpellDataDto.fromJson(e as Map<String, dynamic>))
          .toList(),
      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(),
    );

SpellDataDto _$SpellDataDtoFromJson(Map<String, dynamic> json) => SpellDataDto(
      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?,
    );
