content: // GENERATED CODE - DO NOT MODIFY BY HAND
  
  part of 'post.dart';
  
  // **************************************************************************
  // JsonSerializableGenerator
  // **************************************************************************
  
  Post _$PostFromJson(Map<String, dynamic> json) => Post(
        pid: json['pid'] as String,
        status: $enumDecode(_$PostStatusEnumMap, json['status']),
        createdAt: Utils.timestampFromJson((json['createdAt'] as num).toInt()),
        updatedAt: Utils.timestampFromJson((json['updatedAt'] as num).toInt()),
        sourceCreatedAt: Utils.timestampFromJsonNullable(
            (json['sourceCreatedAt'] as num?)?.toInt()),
        eid: json['eid'] as String?,
        sid: json['sid'] as String?,
        xid: json['xid'] as String?,
        plid: json['plid'] as String?,
        title: json['title'] as String?,
        body: json['body'] as String?,
        poster: json['poster'] as String?,
        sids:
            (json['sids'] as List<dynamic>?)?.map((e) => e as String).toList() ??
                const [],
        stids:
            (json['stids'] as List<dynamic>?)?.map((e) => e as String).toList() ??
                const [],
        url: json['url'] as String?,
        photo: json['photo'] == null
            ? null
            : Photo.fromJson(json['photo'] as Map<String, dynamic>),
        video: json['video'] == null
            ? null
            : Video.fromJson(json['video'] as Map<String, dynamic>),
        locations: (json['locations'] as List<dynamic>?)
                ?.map((e) => e as String)
                .toList() ??
            const [],
        replies: (json['replies'] as num?)?.toInt(),
        reposts: (json['reposts'] as num?)?.toInt(),
        likes: (json['likes'] as num?)?.toInt(),
        bookmarks: (json['bookmarks'] as num?)?.toInt(),
        views: (json['views'] as num?)?.toInt(),
        socialScore: (json['socialScore'] as num?)?.toInt(),
        bias: json['bias'] == null
            ? null
            : PoliticalPosition.fromJson(json['bias']),
        confidence: json['confidence'] == null
            ? null
            : Confidence.fromJson(json['confidence']),
        virality: json['virality'] == null
            ? null
            : Confidence.fromJson(json['virality']),
        entityVirality: json['entityVirality'] == null
            ? null
            : Confidence.fromJson(json['entityVirality']),
        platformVirality: json['platformVirality'] == null
            ? null
            : Confidence.fromJson(json['platformVirality']),
        messageCount: (json['messageCount'] as num?)?.toInt(),
        userBias: json['userBias'] == null
            ? null
            : PoliticalPosition.fromJson(json['userBias']),
        aiBias: json['aiBias'] == null
            ? null
            : PoliticalPosition.fromJson(json['aiBias']),
        debateBias: json['debateBias'] == null
            ? null
            : PoliticalPosition.fromJson(json['debateBias']),
        userConfidence: json['userConfidence'] == null
            ? null
            : Confidence.fromJson(json['userConfidence']),
        aiConfidence: json['aiConfidence'] == null
            ? null
            : Confidence.fromJson(json['aiConfidence']),
        voteCountBias: (json['voteCountBias'] as num?)?.toInt() ?? 0,
        voteCountConfidence: (json['voteCountConfidence'] as num?)?.toInt() ?? 0,
        debateCountBias: (json['debateCountBias'] as num?)?.toInt() ?? 0,
      );
  
  Map<String, dynamic> _$PostToJson(Post instance) => <String, dynamic>{
        'pid': instance.pid,
        'sid': instance.sid,
        'sids': instance.sids,
        'stids': instance.stids,
        'eid': instance.eid,
        'xid': instance.xid,
        'plid': instance.plid,
        'poster': instance.poster,
        'status': _$PostStatusEnumMap[instance.status]!,
        'title': instance.title,
        'body': instance.body,
        'photo': instance.photo?.toJson(),
        'video': instance.video?.toJson(),
        'url': instance.url,
        'locations': instance.locations,
        'views': instance.views,
        'likes': instance.likes,
        'replies': instance.replies,
        'reposts': instance.reposts,
        'bookmarks': instance.bookmarks,
        'socialScore': instance.socialScore,
        'confidence': instance.confidence?.toJson(),
        'bias': instance.bias?.toJson(),
        'virality': instance.virality?.toJson(),
        'entityVirality': instance.entityVirality?.toJson(),
        'platformVirality': instance.platformVirality?.toJson(),
        'userBias': instance.userBias?.toJson(),
        'aiBias': instance.aiBias?.toJson(),
        'debateBias': instance.debateBias?.toJson(),
        'userConfidence': instance.userConfidence?.toJson(),
        'aiConfidence': instance.aiConfidence?.toJson(),
        'voteCountBias': instance.voteCountBias,
        'voteCountConfidence': instance.voteCountConfidence,
        'debateCountBias': instance.debateCountBias,
        'messageCount': instance.messageCount,
        'createdAt': Utils.timestampToJson(instance.createdAt),
        'updatedAt': Utils.timestampToJson(instance.updatedAt),
        'sourceCreatedAt':
            Utils.timestampToJsonNullable(instance.sourceCreatedAt),
      };
  
  const _$PostStatusEnumMap = {
    PostStatus.scraping: 'scraping',
    PostStatus.draft: 'draft',
    PostStatus.published: 'published',
    PostStatus.findingStories: 'findingStories',
    PostStatus.foundStories: 'foundStories',
    PostStatus.findingStatements: 'findingStatements',
    PostStatus.foundStatements: 'foundStatements',
    PostStatus.noStatements: 'noStatements',
    PostStatus.found: 'found',
    PostStatus.unsupported: 'unsupported',
    PostStatus.noStories: 'noStories',
    PostStatus.errored: 'errored',
  };
  