Post class

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

Constructors

Post({required int id, 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 numChildren, required int netRshares, required double authorReputation, required PostStats stats, required String url, required List<Beneficiary> beneficiaries, required String maxAcceptedPayout, required Map<String, int> upvotes, required Map<String, int> downvotes, String community = '', String communityTitle = '', required int tribePendingToken, required int tribePrecision, required String tribeToken, required bool tribeIsMuted, required double tribeScoreHot, required double tribeScorePromoted, required double tribeScoreTrend, required int tribeTotalPayoutValue, required int tribeTotalVoteWeight, required int tribeVoteRshares, required Map<String, double> tribeUpvotes, required Map<String, double> tribeDownvotes})
const
Post.fromJson(Map<String, dynamic> json)
factory

Properties

author String
finalinherited
authorperm Authorperm
no setterinherited
authorReputation double
finalinherited
beneficiaries List<Beneficiary>
finalinherited
body String
finalinherited
category String
finalinherited
community String?
finalinherited
communityTitle String?
finalinherited
created DateTime
finalinherited
depth int
finalinherited
downvotes Map<String, int>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id int
finalinherited
jsonMetadata JsonMetadata
finalinherited
maxAcceptedPayout String
finalinherited
netRshares int
finalinherited
numChildren int
finalinherited
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stats PostStats
finalinherited
summary String
no setterinherited
title String
finalinherited
tribeDownvotes Map<String, double>
finalinherited
tribeIsMuted bool
finalinherited
tribePendingToken int
finalinherited
tribePrecision int
finalinherited
tribeScoreHot double
finalinherited
tribeScorePromoted double
finalinherited
tribeScoreTrend double
finalinherited
tribeToken String
finalinherited
tribeTotalPayoutValue int
finalinherited
tribeTotalVoteWeight int
finalinherited
tribeUpvotes Map<String, double>
finalinherited
tribeVoteRshares int
finalinherited
updated DateTime?
finalinherited
upvotes Map<String, int>
finalinherited
url String
finalinherited

Methods

didDownvote(String? username) bool
inherited
didUpvote(String? username) bool
inherited
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.
override
tribeDidDownvote(String? username) bool
inherited
tribeDidUpvote(String? username) bool
inherited

Operators

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