Post constructor

const Post({
  1. required int postId,
  2. required String author,
  3. required String permlink,
  4. required String category,
  5. required String title,
  6. required String body,
  7. required JsonMetadata jsonMetadata,
  8. required DateTime created,
  9. required DateTime updated,
  10. required int depth,
  11. required int children,
  12. required int netRshares,
  13. required bool isPaidout,
  14. required DateTime payoutAt,
  15. required double payout,
  16. required String pendingPayoutValue,
  17. required String authorPayoutValue,
  18. required String curatorPayoutValue,
  19. required String promoted,
  20. required List<String> replies,
  21. int? bodyLength,
  22. double? authorReputation,
  23. required PostStats stats,
  24. String? parentAuthor,
  25. String? parentPermlink,
  26. required String url,
  27. String? rootTitle,
  28. required List<Beneficiary> beneficiaries,
  29. required String maxAcceptedPayout,
  30. required int percentHbd,
  31. required List<ActiveVote> activeVotes,
  32. required List<String> blacklists,
  33. String? community,
  34. String? communityTitle,
  35. String? authorRole,
  36. String? authorTitle,
})

Implementation

const Post({
  required this.postId,
  required this.author,
  required this.permlink,
  required this.category,
  required this.title,
  required this.body,
  required this.jsonMetadata,
  required this.created,
  required this.updated,
  required this.depth,
  required this.children,
  required this.netRshares,
  required this.isPaidout,
  required this.payoutAt,
  required this.payout,
  required this.pendingPayoutValue,
  required this.authorPayoutValue,
  required this.curatorPayoutValue,
  required this.promoted,
  required this.replies,
  this.bodyLength,
  this.authorReputation,
  required this.stats,
  this.parentAuthor,
  this.parentPermlink,
  required this.url,
  this.rootTitle,
  required this.beneficiaries,
  required this.maxAcceptedPayout,
  required this.percentHbd,
  required this.activeVotes,
  required this.blacklists,
  this.community,
  this.communityTitle,
  this.authorRole,
  this.authorTitle,
});