forked from eatvio/eatvio_app
44 lines
1.7 KiB
Dart
44 lines
1.7 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'feed_blog_post_model.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$FeedBlogPostModelImpl _$$FeedBlogPostModelImplFromJson(
|
|
Map<String, dynamic> json) =>
|
|
_$FeedBlogPostModelImpl(
|
|
id: (json['id'] as num).toInt(),
|
|
state: json['state'] as String,
|
|
image: json['image'] as String,
|
|
description: json['description'] as String,
|
|
author: Author.fromJson(json['author'] as Map<String, dynamic>),
|
|
youtubeUrl: json['youtube_url'] as String,
|
|
createdAt: DateTime.parse(json['created_at'] as String),
|
|
updatedAt: DateTime.parse(json['updated_at'] as String),
|
|
title: json['title'] as String,
|
|
totalLikes: (json['total_likes'] as num).toInt(),
|
|
totalViews: (json['total_views'] as num).toInt(),
|
|
totalComments: (json['total_comments'] as num).toInt(),
|
|
wasLikedByMe: json['was_liked_by_me'] as bool,
|
|
);
|
|
|
|
Map<String, dynamic> _$$FeedBlogPostModelImplToJson(
|
|
_$FeedBlogPostModelImpl instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'state': instance.state,
|
|
'image': instance.image,
|
|
'description': instance.description,
|
|
'author': instance.author,
|
|
'youtube_url': instance.youtubeUrl,
|
|
'created_at': instance.createdAt.toIso8601String(),
|
|
'updated_at': instance.updatedAt.toIso8601String(),
|
|
'title': instance.title,
|
|
'total_likes': instance.totalLikes,
|
|
'total_views': instance.totalViews,
|
|
'total_comments': instance.totalComments,
|
|
'was_liked_by_me': instance.wasLikedByMe,
|
|
};
|