copyWithWrapped method
Institution
copyWithWrapped({
- Wrapped<
String> ? institutionId, - Wrapped<
String> ? name, - Wrapped<
List< ? products,Products> > - Wrapped<
List< ? countryCodes,CountryCode> > - Wrapped<
String?> ? url, - Wrapped<
String?> ? primaryColor, - Wrapped<
String?> ? logo, - Wrapped<
List< ? routingNumbers,String> > - Wrapped<
bool> ? oauth, - Wrapped<
InstitutionStatus?> ? status, - Wrapped<
PaymentInitiationMetadata?> ? paymentInitiationMetadata, - Wrapped<
AuthMetadata?> ? authMetadata,
Implementation
Institution copyWithWrapped(
{Wrapped<String>? institutionId,
Wrapped<String>? name,
Wrapped<List<enums.Products>>? products,
Wrapped<List<enums.CountryCode>>? countryCodes,
Wrapped<String?>? url,
Wrapped<String?>? primaryColor,
Wrapped<String?>? logo,
Wrapped<List<String>>? routingNumbers,
Wrapped<bool>? oauth,
Wrapped<InstitutionStatus?>? status,
Wrapped<PaymentInitiationMetadata?>? paymentInitiationMetadata,
Wrapped<AuthMetadata?>? authMetadata}) {
return Institution(
institutionId:
(institutionId != null ? institutionId.value : this.institutionId),
name: (name != null ? name.value : this.name),
products: (products != null ? products.value : this.products),
countryCodes:
(countryCodes != null ? countryCodes.value : this.countryCodes),
url: (url != null ? url.value : this.url),
primaryColor:
(primaryColor != null ? primaryColor.value : this.primaryColor),
logo: (logo != null ? logo.value : this.logo),
routingNumbers: (routingNumbers != null
? routingNumbers.value
: this.routingNumbers),
oauth: (oauth != null ? oauth.value : this.oauth),
status: (status != null ? status.value : this.status),
paymentInitiationMetadata: (paymentInitiationMetadata != null
? paymentInitiationMetadata.value
: this.paymentInitiationMetadata),
authMetadata:
(authMetadata != null ? authMetadata.value : this.authMetadata));
}