2024-10-18 23:47:45 +04:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'foods_dto.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
FoodsDto _$FoodsDtoFromJson(Map<String, dynamic> json) => FoodsDto(
|
|
|
|
foods: (json['foods'] as List<dynamic>?)
|
|
|
|
?.map((e) => FoodDataDto.fromJson(e as Map<String, dynamic>))
|
|
|
|
.toList(),
|
2024-10-20 12:08:42 +04:00
|
|
|
meta: json['meta'] == null
|
|
|
|
? null
|
|
|
|
: MetaDto.fromJson(json['meta'] as Map<String, dynamic>),
|
2024-10-18 23:47:45 +04:00
|
|
|
);
|
|
|
|
|
|
|
|
FoodDataDto _$FoodDataDtoFromJson(Map<String, dynamic> json) => FoodDataDto(
|
|
|
|
fdcId: (json['fdcId'] as num?)?.toInt(),
|
|
|
|
brandName: json['brandName'] as String?,
|
|
|
|
description: json['description'] as String?,
|
|
|
|
image: 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(),
|
|
|
|
);
|