copyWithWrapped method

IdentityVerificationUserData copyWithWrapped({
  1. Wrapped<String?>? phoneNumber,
  2. Wrapped<String?>? dateOfBirth,
  3. Wrapped<String?>? ipAddress,
  4. Wrapped<String?>? emailAddress,
  5. Wrapped<UserName?>? name,
  6. Wrapped<IdentityVerificationUserAddress?>? address,
  7. Wrapped<UserIDNumber?>? idNumber,
})

Implementation

IdentityVerificationUserData copyWithWrapped(
    {Wrapped<String?>? phoneNumber,
    Wrapped<String?>? dateOfBirth,
    Wrapped<String?>? ipAddress,
    Wrapped<String?>? emailAddress,
    Wrapped<UserName?>? name,
    Wrapped<IdentityVerificationUserAddress?>? address,
    Wrapped<UserIDNumber?>? idNumber}) {
  return IdentityVerificationUserData(
      phoneNumber:
          (phoneNumber != null ? phoneNumber.value : this.phoneNumber),
      dateOfBirth:
          (dateOfBirth != null ? dateOfBirth.value : this.dateOfBirth),
      ipAddress: (ipAddress != null ? ipAddress.value : this.ipAddress),
      emailAddress:
          (emailAddress != null ? emailAddress.value : this.emailAddress),
      name: (name != null ? name.value : this.name),
      address: (address != null ? address.value : this.address),
      idNumber: (idNumber != null ? idNumber.value : this.idNumber));
}