34 lines
1.2 KiB
Dart
34 lines
1.2 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'characters_dto.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
CharactersDto _$CharactersDtoFromJson(Map<String, dynamic> json) =>
|
|
CharactersDto(
|
|
data: (json["data"] as List<dynamic>?)?.map((e) => CharactersDataDto.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
meta: MetaDto.fromJson(json['meta'] as Map<String, dynamic>),
|
|
);
|
|
|
|
CharactersDataDto _$CharactersDataDtoFromJson(Map<String, dynamic> json) =>
|
|
CharactersDataDto(
|
|
(json['id'] as num).toInt(),
|
|
json['fullName'] as String,
|
|
json['title'] as String,
|
|
json['family'] as String,
|
|
json['imageUrl'] as String,
|
|
);
|
|
|
|
MetaDto _$MetaDtoFromJson(Map<String, dynamic> json) => MetaDto(
|
|
pagination: 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(),
|
|
); |