copyWith method

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

Implementation

DepositSwitchTargetUser copyWith(
    {String? givenName,
    String? familyName,
    String? phone,
    String? email,
    DepositSwitchAddressData? address,
    String? taxPayerId}) {
  return DepositSwitchTargetUser(
      givenName: givenName ?? this.givenName,
      familyName: familyName ?? this.familyName,
      phone: phone ?? this.phone,
      email: email ?? this.email,
      address: address ?? this.address,
      taxPayerId: taxPayerId ?? this.taxPayerId);
}