PMU/lib/data/dtos/words_dto.g.dart
2024-12-21 15:24:04 +04:00

47 lines
1.5 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(),
meta: json['meta'] == null
? null
: MetaDto.fromJson(json['meta'] as Map<String, dynamic>),
);
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['word'] as String?,
json['translation'] as String?,
json['image'] as String?,
);
MetaDto _$MetaDtoFromJson(Map<String, dynamic> json) => MetaDto(
pagination: json['pagination'] == null
? null
: 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(),
);