copyWithWrapped method

Security copyWithWrapped({
  1. Wrapped<String>? securityId,
  2. Wrapped<String?>? isin,
  3. Wrapped<String?>? cusip,
  4. Wrapped<String?>? sedol,
  5. Wrapped<String?>? institutionSecurityId,
  6. Wrapped<String?>? institutionId,
  7. Wrapped<String?>? proxySecurityId,
  8. Wrapped<String?>? name,
  9. Wrapped<String?>? tickerSymbol,
  10. Wrapped<bool?>? isCashEquivalent,
  11. Wrapped<String?>? type,
  12. Wrapped<double?>? closePrice,
  13. Wrapped<DateTime?>? closePriceAsOf,
  14. Wrapped<DateTime?>? updateDatetime,
  15. Wrapped<String?>? isoCurrencyCode,
  16. Wrapped<String?>? unofficialCurrencyCode,
})

Implementation

Security copyWithWrapped(
    {Wrapped<String>? securityId,
    Wrapped<String?>? isin,
    Wrapped<String?>? cusip,
    Wrapped<String?>? sedol,
    Wrapped<String?>? institutionSecurityId,
    Wrapped<String?>? institutionId,
    Wrapped<String?>? proxySecurityId,
    Wrapped<String?>? name,
    Wrapped<String?>? tickerSymbol,
    Wrapped<bool?>? isCashEquivalent,
    Wrapped<String?>? type,
    Wrapped<double?>? closePrice,
    Wrapped<DateTime?>? closePriceAsOf,
    Wrapped<DateTime?>? updateDatetime,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? unofficialCurrencyCode}) {
  return Security(
      securityId: (securityId != null ? securityId.value : this.securityId),
      isin: (isin != null ? isin.value : this.isin),
      cusip: (cusip != null ? cusip.value : this.cusip),
      sedol: (sedol != null ? sedol.value : this.sedol),
      institutionSecurityId: (institutionSecurityId != null
          ? institutionSecurityId.value
          : this.institutionSecurityId),
      institutionId:
          (institutionId != null ? institutionId.value : this.institutionId),
      proxySecurityId: (proxySecurityId != null
          ? proxySecurityId.value
          : this.proxySecurityId),
      name: (name != null ? name.value : this.name),
      tickerSymbol:
          (tickerSymbol != null ? tickerSymbol.value : this.tickerSymbol),
      isCashEquivalent: (isCashEquivalent != null
          ? isCashEquivalent.value
          : this.isCashEquivalent),
      type: (type != null ? type.value : this.type),
      closePrice: (closePrice != null ? closePrice.value : this.closePrice),
      closePriceAsOf: (closePriceAsOf != null
          ? closePriceAsOf.value
          : this.closePriceAsOf),
      updateDatetime: (updateDatetime != null
          ? updateDatetime.value
          : this.updateDatetime),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      unofficialCurrencyCode: (unofficialCurrencyCode != null
          ? unofficialCurrencyCode.value
          : this.unofficialCurrencyCode));
}