PMU_Petrushin_PIbd-32/lib/data/dtos/foods_dto.g.dart

21 lines
740 B
Dart
Raw Normal View History

2024-10-07 23:44:26 +04:00
// GENERATED CODE - DO NOT MODIFY BY HAND
2024-10-18 19:29:21 +04:00
part of 'foods_dto.dart';
2024-10-07 23:44:26 +04:00
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
2024-10-18 19:29:21 +04:00
FoodsDto _$FoodsDtoFromJson(Map<String, dynamic> json) => FoodsDto(
2024-10-18 19:20:31 +04:00
foods: (json['foods'] as List<dynamic>?)
2024-10-18 19:29:21 +04:00
?.map((e) => FoodDataDto.fromJson(e as Map<String, dynamic>))
2024-10-07 23:44:26 +04:00
.toList(),
);
2024-10-18 19:29:21 +04:00
FoodDataDto _$FoodDataDtoFromJson(Map<String, dynamic> json) => FoodDataDto(
2024-10-18 19:20:31 +04:00
fdcId: (json['fdcId'] as num?)?.toInt(),
brandName: json['brandName'] as String?,
description: json['description'] as String?,
2024-10-07 23:44:26 +04:00
image: json['image'] as String?,
);