lab5
This commit is contained in:
parent
0170528a18
commit
89d2b1786d
34
lib/data/dtos/characters_dto.g.dart
Normal file
34
lib/data/dtos/characters_dto.g.dart
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// 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) => CharacterDataDto.fromJson(e as Map<String, dynamic>))
|
||||||
|
.toList(),
|
||||||
|
);
|
||||||
|
|
||||||
|
CharacterDataDto _$CharacterDataDtoFromJson(Map<String, dynamic> json) =>
|
||||||
|
CharacterDataDto(
|
||||||
|
id: json['id'] as String?,
|
||||||
|
type: json['type'] as String?,
|
||||||
|
attributes: json['attributes'] == null
|
||||||
|
? null
|
||||||
|
: CharacterAttributesDataDto.fromJson(
|
||||||
|
json['attributes'] as Map<String, dynamic>),
|
||||||
|
);
|
||||||
|
|
||||||
|
CharacterAttributesDataDto _$CharacterAttributesDataDtoFromJson(
|
||||||
|
Map<String, dynamic> json) =>
|
||||||
|
CharacterAttributesDataDto(
|
||||||
|
name: json['name'] as String?,
|
||||||
|
age: json['age'] as String?,
|
||||||
|
courses:
|
||||||
|
(json['courses'] as List<dynamic>?)?.map((e) => e as String).toList(),
|
||||||
|
image: json['image'] as String?,
|
||||||
|
);
|
Loading…
Reference in New Issue
Block a user