copyWith method

TaxpayerIdentifier copyWith({
  1. TaxpayerIdentifierType? taxpayerIdentifierType,
  2. String? taxpayerIdentifierValue,
})

Implementation

TaxpayerIdentifier copyWith(
    {enums.TaxpayerIdentifierType? taxpayerIdentifierType,
    String? taxpayerIdentifierValue}) {
  return TaxpayerIdentifier(
      taxpayerIdentifierType:
          taxpayerIdentifierType ?? this.taxpayerIdentifierType,
      taxpayerIdentifierValue:
          taxpayerIdentifierValue ?? this.taxpayerIdentifierValue);
}