32 lines
1.0 KiB
Dart
32 lines
1.0 KiB
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'words_dto.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
WordsDto _$WordsDtoFromJson(Map<String, dynamic> json) => WordsDto(
|
||
|
data: (json['data'] as List<dynamic>?)
|
||
|
?.map((e) => WordDataDto.fromJson(e as Map<String, dynamic>))
|
||
|
.toList(),
|
||
|
);
|
||
|
|
||
|
WordDataDto _$WordDataDtoFromJson(Map<String, dynamic> json) => WordDataDto(
|
||
|
id: json['id'] as String?,
|
||
|
type: json['type'] as String?,
|
||
|
attributes: json['attributes'] == null
|
||
|
? null
|
||
|
: WordAttributesDataDto.fromJson(
|
||
|
json['attributes'] as Map<String, dynamic>),
|
||
|
);
|
||
|
|
||
|
WordAttributesDataDto _$WordAttributesDataDtoFromJson(
|
||
|
Map<String, dynamic> json) =>
|
||
|
WordAttributesDataDto(
|
||
|
json['name'] as String?,
|
||
|
json['born'] as String?,
|
||
|
json['died'] as String?,
|
||
|
json['image'] as String?,
|
||
|
);
|