Post class

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake, explicitToJson: true)

Constructors

Post({required int postId, required String author, required String permlink, required String category, required String title, required String body, required JsonMetadata jsonMetadata, required DateTime created, required DateTime updated, required int depth, required int children, required int netRshares, required bool isPaidout, required DateTime payoutAt, required double payout, required String pendingPayoutValue, required String authorPayoutValue, required String curatorPayoutValue, required String promoted, required List<String> replies, int? bodyLength, double? authorReputation, required PostStats stats, String? parentAuthor, String? parentPermlink, required String url, String? rootTitle, required List<Beneficiary> beneficiaries, required String maxAcceptedPayout, required int percentHbd, required List<ActiveVote> activeVotes, required List<String> blacklists, String? community, String? communityTitle, String? authorRole, String? authorTitle})
const
Post.fromJson(Map<String, dynamic> json)
factory

Properties

activeVotes List<ActiveVote>
final
author String
final
authorPayoutValue String
final
authorperm String
no setter
authorReputation double?
final
authorRole String?
final
authorTitle String?
final
beneficiaries List<Beneficiary>
final
blacklists List<String>
final
body String
final
bodyLength int?
final
category String
final
children int
final
community String?
final
communityTitle String?
final
created DateTime
final
curatorPayoutValue String
final
depth int
final
hashCode int
The hash code for this object.
no setterinherited
isPaidout bool
final
jsonMetadata JsonMetadata
final
maxAcceptedPayout String
final
netRshares int
final
parentAuthor String?
final
final
payout double
final
payoutAt DateTime
final
pendingPayoutValue String
final
percentHbd int
final
final
postId int
final
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
replies List<String>
final
rootTitle String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stats PostStats
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
title String
final
updated DateTime
final
url String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.

Operators

operator ==(Object other) bool
The equality operator.
inherited