// GENERATED CODE - DO NOT MODIFY BY HAND part of 'spells_dto.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** SpellsDto _$SpellsDtoFromJson(Map json) => SpellsDto( data: (json['data'] as List?) ?.map((e) => SpellDataDto.fromJson(e as Map)) .toList(), meta: json['meta'] == null ? null : MetaDto.fromJson(json['meta'] as Map), ); MetaDto _$MetaDtoFromJson(Map json) => MetaDto( pagination: json['pagination'] == null ? null : PaginationDto.fromJson(json['pagination'] as Map), ); PaginationDto _$PaginationDtoFromJson(Map 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 json) => SpellDataDto( json['id'] as String, type: json['type'] as String?, attributes: json['attributes'] == null ? null : SpellAttributesDataDto.fromJson( json['attributes'] as Map), ); SpellAttributesDataDto _$SpellAttributesDataDtoFromJson( Map 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?, );