// GENERATED CODE - DO NOT MODIFY BY HAND part of 'potions_dto.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** PotionsDto _$PotionsDtoFromJson(Map json) => PotionsDto( data: (json['data'] as List?) ?.map((e) => PotionDataDto.fromJson(e as Map)) .toList(), meta: json['meta'] == null ? null : MetaDto.fromJson(json['meta'] as Map), ); PotionDataDto _$PotionDataDtoFromJson(Map json) => PotionDataDto( id: json['id'] as String?, type: json['type'] as String?, attributes: json['attributes'] == null ? null : PotionAttributesDataDto.fromJson( json['attributes'] as Map), ); PotionAttributesDataDto _$PotionAttributesDataDtoFromJson( Map json) => PotionAttributesDataDto( name: json['name'] as String?, characteristics: json['characteristics'] as String?, effect: json['effect'] as String?, image: json['image'] as String?, ); 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(), );