copyWithWrapped method

Institution copyWithWrapped({
  1. Wrapped<String>? institutionId,
  2. Wrapped<String>? name,
  3. Wrapped<List<Products>>? products,
  4. Wrapped<List<CountryCode>>? countryCodes,
  5. Wrapped<String?>? url,
  6. Wrapped<String?>? primaryColor,
  7. Wrapped<List<String>>? routingNumbers,
  8. Wrapped<bool>? oauth,
  9. Wrapped<InstitutionStatus?>? status,
  10. Wrapped<PaymentInitiationMetadata?>? paymentInitiationMetadata,
  11. 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));
}