StakedToken class
A class representing a staked token.
- Annotations
-
- @freezed
Constructors
- StakedToken({required String tokenAddress, required String tokenSymbol, required String tokenName, required String tokenLogoURI, required double stakedAmount, required String unStakeTokenAddress, required double stakedAmountUSD, required double earnedAmountUSD, required double stakingApr})
-
Constructs a new StakedToken instance.
factory
-
StakedToken.fromJson(Map<
String, dynamic> json) -
Creates a StakedToken instance from a JSON object.
factory
Properties
-
copyWith
→ $StakedTokenCopyWith<
StakedToken> -
Create a copy of StakedToken
with the given fields replaced by the non-null parameter values.
no setterinherited
- earnedAmountUSD → double
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stakedAmount → double
-
no setterinherited
- stakedAmountUSD → double
-
no setterinherited
- stakingApr → double
-
no setterinherited
- tokenAddress → String
-
no setterinherited
- tokenLogoURI → String
-
no setterinherited
- tokenName → String
-
no setterinherited
- tokenSymbol → String
-
no setterinherited
- unStakeTokenAddress → String
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this StakedToken to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited