copyWithWrapped method

AssetDetail copyWithWrapped({
  1. Wrapped<String>? assetUniqueIdentifier,
  2. Wrapped<String>? assetAccountIdentifier,
  3. Wrapped<String>? assetAsOfDate,
  4. Wrapped<String?>? assetDescription,
  5. Wrapped<double>? assetAvailableBalanceAmount,
  6. Wrapped<double>? assetCurrentBalanceAmount,
  7. Wrapped<AssetType>? assetType,
  8. Wrapped<String?>? assetTypeAdditionalDescription,
  9. Wrapped<int>? assetDaysRequestedCount,
  10. Wrapped<String?>? assetOwnershipType,
})

Implementation

AssetDetail copyWithWrapped(
    {Wrapped<String>? assetUniqueIdentifier,
    Wrapped<String>? assetAccountIdentifier,
    Wrapped<String>? assetAsOfDate,
    Wrapped<String?>? assetDescription,
    Wrapped<double>? assetAvailableBalanceAmount,
    Wrapped<double>? assetCurrentBalanceAmount,
    Wrapped<enums.AssetType>? assetType,
    Wrapped<String?>? assetTypeAdditionalDescription,
    Wrapped<int>? assetDaysRequestedCount,
    Wrapped<String?>? assetOwnershipType}) {
  return AssetDetail(
      assetUniqueIdentifier: (assetUniqueIdentifier != null
          ? assetUniqueIdentifier.value
          : this.assetUniqueIdentifier),
      assetAccountIdentifier: (assetAccountIdentifier != null
          ? assetAccountIdentifier.value
          : this.assetAccountIdentifier),
      assetAsOfDate:
          (assetAsOfDate != null ? assetAsOfDate.value : this.assetAsOfDate),
      assetDescription: (assetDescription != null
          ? assetDescription.value
          : this.assetDescription),
      assetAvailableBalanceAmount: (assetAvailableBalanceAmount != null
          ? assetAvailableBalanceAmount.value
          : this.assetAvailableBalanceAmount),
      assetCurrentBalanceAmount: (assetCurrentBalanceAmount != null
          ? assetCurrentBalanceAmount.value
          : this.assetCurrentBalanceAmount),
      assetType: (assetType != null ? assetType.value : this.assetType),
      assetTypeAdditionalDescription: (assetTypeAdditionalDescription != null
          ? assetTypeAdditionalDescription.value
          : this.assetTypeAdditionalDescription),
      assetDaysRequestedCount: (assetDaysRequestedCount != null
          ? assetDaysRequestedCount.value
          : this.assetDaysRequestedCount),
      assetOwnershipType: (assetOwnershipType != null
          ? assetOwnershipType.value
          : this.assetOwnershipType));
}