toJson method

Map<String, dynamic> toJson()
override

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'category': category,
  'parent_author': parentAuthor,
  'parent_permlink': parentPermlink,
  'author': author,
  'permlink': permlink,
  'title': title,
  'body': body,
  'json_metadata':
      jsonMetadata != null ? jsonEncode(jsonMetadata!.toJson()) : null,
  'stats': stats != null ? stats!.toJson() : null,
  'last_update': lastUpdate,
  'created': created,
  'active': active,
  'last_payout': lastPayout,
  'depth': depth,
  'children': children,
  'net_rshares': netRshares,
  'abs_rshares': absRshares,
  'vote_rshares': voteRshares,
  'children_abs_rshares': childrenAbsRshares,
  'cashout_time': cashoutTime,
  'max_cashout_time': maxCashoutTime,
  'total_vote_weight': totalVoteWeight,
  'reward_weight': rewardWeight,
  'total_payout_value': totalPayoutValue?.toJson(),
  'curator_payout_value': curatorPayoutValue?.toJson(),
  'author_rewards': authorRewards,
  'net_votes': netVotes,
  'root_comment': rootComment,
  'max_accepted_payout': maxAcceptedPayout,
  'percent_hbd': percentHbd,
  'allow_replies': allowReplies,
  'allow_votes': allowVotes,
  'allow_curation_rewards': allowCurationRewards,
  'beneficiaries': beneficiaries?.map((x) => x.toJson()).toList(),
  'url': url,
  'root_title': rootTitle,
  'payout': payout,
  'payout_at': payoutAt,
  'pending_payout_value': pendingPayoutValue?.toJson(),
  'total_pending_payout_value': totalPendingPayoutValue?.toJson(),
  'active_votes': activeVotes?.map((x) => x.toJson()).toList(),
  'replies': replies,
  'author_reputation': authorReputation,
  'promoted': promoted?.toJson(),
  'reblogged_by': rebloggedBy,
  'first_reblogged_by': firstRebloggedBy,
  'first_reblogged_on': firstRebloggedOn,
  'community': community,
  'community_title': communityTitle,
};