LpUnderlyingTokens constructor

  1. @Implements<IToken>()
LpUnderlyingTokens({
  1. required String symbol,
  2. @JsonKey(fromJson: nameFromJson) required String name,
  3. @JsonKey(fromJson: addressFromJson) required String address,
})

Constructs a new LpUnderlyingTokens instance.

Parameters:

  • symbol – The symbol of the underlying token.
  • name – The name of the underlying token.
  • address – The address of the underlying token.

The @JsonKey annotations are used to customize the serialization and deserialization of the name and address properties.

Implementation

@Implements<IToken>()
factory LpUnderlyingTokens({
  required String symbol,
  @JsonKey(
    fromJson: nameFromJson,
  )
  required String name,
  @JsonKey(
    fromJson: addressFromJson,
  )
  required String address,
}) = _LpUnderlyingTokens;