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 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
-
final
-
final
-
no setter
-
final
-
final
-
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
-
final
- parentAuthor → String?
-
final
- parentPermlink → String?
-
final
- payout → double
-
final
- payoutAt → DateTime
-
final
- pendingPayoutValue → String
-
final
- percentHbd → int
-
final
- permlink → String
-
final
- postId → int
-
final
- promoted → String
-
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
, thetoString
method will be overridden to output this instance'sprops
.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