forked from eatvio/eatvio_app
32 lines
1.3 KiB
Dart
32 lines
1.3 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(),
|
|
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?,
|
|
cooking_time: (json['cooking_time'] as num?)?.toInt(),
|
|
);
|
|
|
|
Map<String, dynamic> _$$RecipeModelImplToJson(_$RecipeModelImpl instance) => <String, dynamic>{
|
|
'ingredients': instance.ingredients,
|
|
'steps': instance.steps,
|
|
'type': instance.type,
|
|
'state': instance.state,
|
|
'title': instance.title,
|
|
'description': instance.description,
|
|
'video_url': instance.video_url,
|
|
'image': instance.image,
|
|
'cooking_time': instance.cooking_time,
|
|
};
|