StakingOption class

A class representing a staking option in a staking platform.

Annotations
  • @freezed

Constructors

StakingOption({required String tokenAddress, required String tokenSymbol, required String tokenName, required String tokenLogoURI, required bool expired, required String unStakeTokenAddress, required double stakingApr, required double tvl})
Constructs a new StakingOption instance.
factory
StakingOption.fromJson(Map<String, dynamic> json)
Creates a StakingOption instance from a JSON object.
factory

Properties

copyWith → $StakingOptionCopyWith<StakingOption>
no setterinherited
expired bool
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
stakingApr double
no setterinherited
tokenAddress String
no setterinherited
tokenLogoURI String
no setterinherited
tokenName String
no setterinherited
tokenSymbol String
no setterinherited
tvl double
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>
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

optionsFromJson(Iterable docs) List<StakingOption>
Creates a list of StakingOption instances from a list of JSON objects.