34 lines
1.2 KiB
Dart
34 lines
1.2 KiB
Dart
|
// 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(),
|
||
|
);
|
||
|
|
||
|
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(),
|
||
|
);
|