Account class

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

Constructors

Account({required int downvotingPower, int earnedMiningToken = 0, int earnedOtherToken = 0, int earnedStakingToken = 0, required int earnedToken, required DateTime lastDownvoteTime, required DateTime lastPost, required DateTime lastRootPost, required DateTime lastVoteTime, required DateTime lastWonMiningClaim, required DateTime lastWonStakingClaim, required bool muted, required int precision, required String name, required int pendingToken, required double stakedMiningPower, required int stakedTokens, required String symbol, double downvoteWeightMultiplier = 1.0, double voteWeightMultiplier = 1.0, required int votingPower, dynamic loki})
const
Account.fromJson(Map<String, dynamic> json)
factory

Properties

downvoteWeightMultiplier double
final
downvotingPower int
final
earnedMiningToken int
final
earnedOtherToken int
final
earnedStakingToken int
final
earnedToken int
final
hashCode int
The hash code for this object.
no setterinherited
lastDownvoteTime DateTime
final
lastPost DateTime
final
lastRootPost DateTime
final
lastVoteTime DateTime
final
lastWonMiningClaim DateTime
final
lastWonStakingClaim DateTime
final
loki → dynamic
final
muted bool
final
name String
final
pendingToken int
final
precision int
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stakedMiningPower double
final
stakedTokens int
final
stringify bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
symbol String
final
voteWeightMultiplier double
final
votingPower int
final

Methods

copyWith({String? name, String? symbol}) Account
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.
inherited

Operators

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

Static Properties

empty Account
getter/setter pair
longDateTimeFormatter → DateFormat
final

Static Methods

fromLongDateTime(String json) DateTime
fromUTCDateTime(String json) DateTime
toLongDateTime(DateTime dateTime) String
toUTCDateTime(DateTime dateTime) String