copyWithWrapped method

Party copyWithWrapped({
  1. Wrapped<PartyIndividual>? individual,
  2. Wrapped<Roles>? roles,
  3. Wrapped<TaxpayerIdentifiers>? taxpayeridentifiers,
})

Implementation

Party copyWithWrapped(
    {Wrapped<PartyIndividual>? individual,
    Wrapped<Roles>? roles,
    Wrapped<TaxpayerIdentifiers>? taxpayeridentifiers}) {
  return Party(
      individual: (individual != null ? individual.value : this.individual),
      roles: (roles != null ? roles.value : this.roles),
      taxpayeridentifiers: (taxpayeridentifiers != null
          ? taxpayeridentifiers.value
          : this.taxpayeridentifiers));
}