copyWithWrapped method

DepositSwitchTargetUser copyWithWrapped({
  1. Wrapped<String>? givenName,
  2. Wrapped<String>? familyName,
  3. Wrapped<String>? phone,
  4. Wrapped<String>? email,
  5. Wrapped<DepositSwitchAddressData?>? address,
  6. Wrapped<String?>? taxPayerId,
})

Implementation

DepositSwitchTargetUser copyWithWrapped(
    {Wrapped<String>? givenName,
    Wrapped<String>? familyName,
    Wrapped<String>? phone,
    Wrapped<String>? email,
    Wrapped<DepositSwitchAddressData?>? address,
    Wrapped<String?>? taxPayerId}) {
  return DepositSwitchTargetUser(
      givenName: (givenName != null ? givenName.value : this.givenName),
      familyName: (familyName != null ? familyName.value : this.familyName),
      phone: (phone != null ? phone.value : this.phone),
      email: (email != null ? email.value : this.email),
      address: (address != null ? address.value : this.address),
      taxPayerId: (taxPayerId != null ? taxPayerId.value : this.taxPayerId));
}