// GENERATED CODE - DO NOT MODIFY BY HAND part of 'characters_dto.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** CharactersDto _$CharactersDtoFromJson(Map json) => CharactersDto( data: (json['data'] as List?) ?.map((e) => CharacterDataDto.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(), last: (json['last'] as num?)?.toInt(), next: (json['next'] as num?)?.toInt(), ); CharacterDataDto _$CharacterDataDtoFromJson(Map json) => CharacterDataDto( json['id'] as String?, json['attributes'] == null ? null : CharacterAttributesDataDto.fromJson(json['attributes'] as Map), ); CharacterAttributesDataDto _$CharacterAttributesDataDtoFromJson(Map json) => CharacterAttributesDataDto( json['name'] as String?, json['image'] as String?, json['species'] as String?, );