// GENERATED CODE - DO NOT MODIFY BY HAND part of 'post.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** PostView _$PostViewFromJson(Map json) { return PostView( id: json['id'] as int, name: json['name'] as String, url: json['url'] as String, body: json['body'] as String, creatorId: json['creator_id'] as int, communityId: json['community_id'] as int, removed: json['removed'] as bool, locked: json['locked'] as bool, published: json['published'] == null ? null : DateTime.parse(json['published'] as String), updated: DateTime.tryParse(json['updated'] as String), deleted: json['deleted'] as bool, nsfw: json['nsfw'] as bool, stickied: json['stickied'] as bool, embedTitle: json['embed_title'] as String, embedDescription: json['embed_description'] as String, embedHtml: json['embed_html'] as String, thumbnailUrl: json['thumbnail_url'] as String, apId: json['ap_id'] as String, local: json['local'] as bool, creatorActorId: json['creator_actor_id'] as String, creatorLocal: json['creator_local'] as bool, creatorName: json['creator_name'] as String, creatorPreferredUsername: json['creator_preferred_username'] as String, creatorPublished: json['creator_published'] == null ? null : DateTime.parse(json['creator_published'] as String), creatorAvatar: json['creator_avatar'] as String, banned: json['banned'] as bool, bannedFromCommunity: json['banned_from_community'] as bool, communityActorId: json['community_actor_id'] as String, communityLocal: json['community_local'] as bool, communityName: json['community_name'] as String, communityIcon: json['community_icon'] as String, communityRemoved: json['community_removed'] as bool, communityDeleted: json['community_deleted'] as bool, communityNsfw: json['community_nsfw'] as bool, numberOfComments: json['number_of_comments'] as int, score: json['score'] as int, upvotes: json['upvotes'] as int, downvotes: json['downvotes'] as int, hotRank: json['hot_rank'] as int, hotRankActive: json['hot_rank_active'] as int, newestActivityTime: json['newest_activity_time'] == null ? null : DateTime.parse(json['newest_activity_time'] as String), userId: json['user_id'] as int, myVote: json['my_vote'] as int, subscribed: json['subscribed'] as bool, read: json['read'] as bool, saved: json['saved'] as bool, ); }