UpdateGenericOAuthProviderRequest constructor

UpdateGenericOAuthProviderRequest({
  1. String? id,
  2. String? name,
  3. String? clientId,
  4. String? clientSecret,
  5. String? authorizationEndpoint,
  6. String? tokenEndpoint,
  7. String? userEndpoint,
  8. Iterable<String>? scopes,
  9. String? idAttribute,
  10. Options? providerOptions,
})

Implementation

factory UpdateGenericOAuthProviderRequest({
  $core.String? id,
  $core.String? name,
  $core.String? clientId,
  $core.String? clientSecret,
  $core.String? authorizationEndpoint,
  $core.String? tokenEndpoint,
  $core.String? userEndpoint,
  $core.Iterable<$core.String>? scopes,
  $core.String? idAttribute,
  $10.Options? providerOptions,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (name != null) {
    $result.name = name;
  }
  if (clientId != null) {
    $result.clientId = clientId;
  }
  if (clientSecret != null) {
    $result.clientSecret = clientSecret;
  }
  if (authorizationEndpoint != null) {
    $result.authorizationEndpoint = authorizationEndpoint;
  }
  if (tokenEndpoint != null) {
    $result.tokenEndpoint = tokenEndpoint;
  }
  if (userEndpoint != null) {
    $result.userEndpoint = userEndpoint;
  }
  if (scopes != null) {
    $result.scopes.addAll(scopes);
  }
  if (idAttribute != null) {
    $result.idAttribute = idAttribute;
  }
  if (providerOptions != null) {
    $result.providerOptions = providerOptions;
  }
  return $result;
}