copyWithWrapped method

LinkDeliveryCreateRequest copyWithWrapped({
  1. Wrapped<String?>? clientId,
  2. Wrapped<String?>? secret,
  3. Wrapped<String>? linkToken,
  4. Wrapped<LinkDeliveryDeliveryMethod>? deliveryMethod,
  5. Wrapped<String>? deliveryDestination,
})

Implementation

LinkDeliveryCreateRequest copyWithWrapped(
    {Wrapped<String?>? clientId,
    Wrapped<String?>? secret,
    Wrapped<String>? linkToken,
    Wrapped<enums.LinkDeliveryDeliveryMethod>? deliveryMethod,
    Wrapped<String>? deliveryDestination}) {
  return LinkDeliveryCreateRequest(
      clientId: (clientId != null ? clientId.value : this.clientId),
      secret: (secret != null ? secret.value : this.secret),
      linkToken: (linkToken != null ? linkToken.value : this.linkToken),
      deliveryMethod: (deliveryMethod != null
          ? deliveryMethod.value
          : this.deliveryMethod),
      deliveryDestination: (deliveryDestination != null
          ? deliveryDestination.value
          : this.deliveryDestination));
}