copyWithWrapped method

AssetInfoSchemaV2 copyWithWrapped({
  1. Wrapped<String?>? balance,
  2. Wrapped<String>? contractAddress,
  3. Wrapped<String?>? dexPriceUsd,
  4. Wrapped<AssetKindSchema>? kind,
  5. Wrapped<AssetMetaSchemaV2?>? meta,
  6. Wrapped<int?>? pairPriority,
  7. Wrapped<List<String>?>? tags,
  8. Wrapped<String?>? walletAddress,
})

Implementation

AssetInfoSchemaV2 copyWithWrapped(
    {Wrapped<String?>? balance,
    Wrapped<String>? contractAddress,
    Wrapped<String?>? dexPriceUsd,
    Wrapped<enums.AssetKindSchema>? kind,
    Wrapped<AssetMetaSchemaV2?>? meta,
    Wrapped<int?>? pairPriority,
    Wrapped<List<String>?>? tags,
    Wrapped<String?>? walletAddress}) {
  return AssetInfoSchemaV2(
      balance: (balance != null ? balance.value : this.balance),
      contractAddress: (contractAddress != null
          ? contractAddress.value
          : this.contractAddress),
      dexPriceUsd:
          (dexPriceUsd != null ? dexPriceUsd.value : this.dexPriceUsd),
      kind: (kind != null ? kind.value : this.kind),
      meta: (meta != null ? meta.value : this.meta),
      pairPriority:
          (pairPriority != null ? pairPriority.value : this.pairPriority),
      tags: (tags != null ? tags.value : this.tags),
      walletAddress:
          (walletAddress != null ? walletAddress.value : this.walletAddress));
}