copyWithWrapped method

AccountBalance copyWithWrapped({
  1. Wrapped<double?>? available,
  2. Wrapped<double?>? current,
  3. Wrapped<double?>? limit,
  4. Wrapped<String?>? isoCurrencyCode,
  5. Wrapped<String?>? unofficialCurrencyCode,
  6. Wrapped<DateTime?>? lastUpdatedDatetime,
})

Implementation

AccountBalance copyWithWrapped(
    {Wrapped<double?>? available,
    Wrapped<double?>? current,
    Wrapped<double?>? limit,
    Wrapped<String?>? isoCurrencyCode,
    Wrapped<String?>? unofficialCurrencyCode,
    Wrapped<DateTime?>? lastUpdatedDatetime}) {
  return AccountBalance(
      available: (available != null ? available.value : this.available),
      current: (current != null ? current.value : this.current),
      limit: (limit != null ? limit.value : this.limit),
      isoCurrencyCode: (isoCurrencyCode != null
          ? isoCurrencyCode.value
          : this.isoCurrencyCode),
      unofficialCurrencyCode: (unofficialCurrencyCode != null
          ? unofficialCurrencyCode.value
          : this.unofficialCurrencyCode),
      lastUpdatedDatetime: (lastUpdatedDatetime != null
          ? lastUpdatedDatetime.value
          : this.lastUpdatedDatetime));
}