forked from eatvio/eatvio_app
48 lines
1.9 KiB
Dart
48 lines
1.9 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'recipe_model.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$RecipeModelImpl _$$RecipeModelImplFromJson(Map<String, dynamic> json) =>
|
|
_$RecipeModelImpl(
|
|
ingredients: (json['ingredients'] as List<dynamic>?)
|
|
?.map((e) =>
|
|
e == null ? null : Ingredient.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
steps: (json['steps'] as List<dynamic>?)
|
|
?.map((e) =>
|
|
e == null ? null : Step.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
tags: (json['tags'] as List<dynamic>?)?.map((e) => e as String).toList(),
|
|
type: json['type'] as String?,
|
|
state: json['state'] as String?,
|
|
title: json['title'] as String?,
|
|
description: json['description'] as String?,
|
|
video_url: json['video_url'] as String?,
|
|
image: json['image'] as String?,
|
|
totalCookingTime: (json['totalCookingTime'] as num?)?.toInt(),
|
|
activeCookTime: (json['activeCookTime'] as num?)?.toInt(),
|
|
servings: (json['servings'] as num?)?.toInt(),
|
|
energyPerServing: (json['energyPerServing'] as num?)?.toInt(),
|
|
);
|
|
|
|
Map<String, dynamic> _$$RecipeModelImplToJson(_$RecipeModelImpl instance) =>
|
|
<String, dynamic>{
|
|
'ingredients': instance.ingredients,
|
|
'steps': instance.steps,
|
|
'tags': instance.tags,
|
|
'type': instance.type,
|
|
'state': instance.state,
|
|
'title': instance.title,
|
|
'description': instance.description,
|
|
'video_url': instance.video_url,
|
|
'image': instance.image,
|
|
'totalCookingTime': instance.totalCookingTime,
|
|
'activeCookTime': instance.activeCookTime,
|
|
'servings': instance.servings,
|
|
'energyPerServing': instance.energyPerServing,
|
|
};
|