copyWithWrapped method

LinkTokenGetMetadataResponse copyWithWrapped({
  1. Wrapped<List<Products>>? initialProducts,
  2. Wrapped<String?>? webhook,
  3. Wrapped<List<CountryCode>>? countryCodes,
  4. Wrapped<String?>? language,
  5. Wrapped<LinkTokenCreateInstitutionData?>? institutionData,
  6. Wrapped<AccountFiltersResponse?>? accountFilters,
  7. Wrapped<String?>? redirectUri,
  8. Wrapped<String?>? clientName,
})

Implementation

LinkTokenGetMetadataResponse copyWithWrapped(
    {Wrapped<List<enums.Products>>? initialProducts,
    Wrapped<String?>? webhook,
    Wrapped<List<enums.CountryCode>>? countryCodes,
    Wrapped<String?>? language,
    Wrapped<LinkTokenCreateInstitutionData?>? institutionData,
    Wrapped<AccountFiltersResponse?>? accountFilters,
    Wrapped<String?>? redirectUri,
    Wrapped<String?>? clientName}) {
  return LinkTokenGetMetadataResponse(
      initialProducts: (initialProducts != null
          ? initialProducts.value
          : this.initialProducts),
      webhook: (webhook != null ? webhook.value : this.webhook),
      countryCodes:
          (countryCodes != null ? countryCodes.value : this.countryCodes),
      language: (language != null ? language.value : this.language),
      institutionData: (institutionData != null
          ? institutionData.value
          : this.institutionData),
      accountFilters: (accountFilters != null
          ? accountFilters.value
          : this.accountFilters),
      redirectUri:
          (redirectUri != null ? redirectUri.value : this.redirectUri),
      clientName: (clientName != null ? clientName.value : this.clientName));
}