copyWithWrapped method

Counterparty copyWithWrapped({
  1. Wrapped<String>? name,
  2. Wrapped<CounterpartyType>? type,
})

Implementation

Counterparty copyWithWrapped(
    {Wrapped<String>? name, Wrapped<enums.CounterpartyType>? type}) {
  return Counterparty(
      name: (name != null ? name.value : this.name),
      type: (type != null ? type.value : this.type));
}