copyWithWrapped method

ConnectedApplication copyWithWrapped({
  1. Wrapped<String>? applicationId,
  2. Wrapped<String>? name,
  3. Wrapped<String?>? displayName,
  4. Wrapped<String?>? logoUrl,
  5. Wrapped<String?>? applicationUrl,
  6. Wrapped<String?>? reasonForAccess,
  7. Wrapped<DateTime>? createdAt,
  8. Wrapped<ScopesNullable?>? scopes,
})

Implementation

ConnectedApplication copyWithWrapped(
    {Wrapped<String>? applicationId,
    Wrapped<String>? name,
    Wrapped<String?>? displayName,
    Wrapped<String?>? logoUrl,
    Wrapped<String?>? applicationUrl,
    Wrapped<String?>? reasonForAccess,
    Wrapped<DateTime>? createdAt,
    Wrapped<ScopesNullable?>? scopes}) {
  return ConnectedApplication(
      applicationId:
          (applicationId != null ? applicationId.value : this.applicationId),
      name: (name != null ? name.value : this.name),
      displayName:
          (displayName != null ? displayName.value : this.displayName),
      logoUrl: (logoUrl != null ? logoUrl.value : this.logoUrl),
      applicationUrl: (applicationUrl != null
          ? applicationUrl.value
          : this.applicationUrl),
      reasonForAccess: (reasonForAccess != null
          ? reasonForAccess.value
          : this.reasonForAccess),
      createdAt: (createdAt != null ? createdAt.value : this.createdAt),
      scopes: (scopes != null ? scopes.value : this.scopes));
}