copyWithWrapped method
LinkTokenGetMetadataResponse
copyWithWrapped({
- Wrapped<
List< ? initialProducts,Products> > - Wrapped<
String?> ? webhook, - Wrapped<
List< ? countryCodes,CountryCode> > - Wrapped<
String?> ? language, - Wrapped<
LinkTokenCreateInstitutionData?> ? institutionData, - Wrapped<
AccountFiltersResponse?> ? accountFilters, - Wrapped<
String?> ? redirectUri, - 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));
}