toJson method

Map<String, dynamic> toJson()

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,
  "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?.toString(),
  "curator_payout_value": curatorPayoutValue?.toString(),
  "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(),
};