copyWithWrapped method

DepositSwitchCreateRequest copyWithWrapped({
  1. Wrapped<String?>? clientId,
  2. Wrapped<String?>? secret,
  3. Wrapped<String>? targetAccessToken,
  4. Wrapped<String>? targetAccountId,
  5. Wrapped<DepositSwitchCreateRequestCountryCode?>? countryCode,
  6. Wrapped<DepositSwitchCreateRequestOptions?>? options,
})

Implementation

DepositSwitchCreateRequest copyWithWrapped(
    {Wrapped<String?>? clientId,
    Wrapped<String?>? secret,
    Wrapped<String>? targetAccessToken,
    Wrapped<String>? targetAccountId,
    Wrapped<enums.DepositSwitchCreateRequestCountryCode?>? countryCode,
    Wrapped<DepositSwitchCreateRequestOptions?>? options}) {
  return DepositSwitchCreateRequest(
      clientId: (clientId != null ? clientId.value : this.clientId),
      secret: (secret != null ? secret.value : this.secret),
      targetAccessToken: (targetAccessToken != null
          ? targetAccessToken.value
          : this.targetAccessToken),
      targetAccountId: (targetAccountId != null
          ? targetAccountId.value
          : this.targetAccountId),
      countryCode:
          (countryCode != null ? countryCode.value : this.countryCode),
      options: (options != null ? options.value : this.options));
}