AddGitHubEnterpriseServerProviderRequest constructor

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

Implementation

factory AddGitHubEnterpriseServerProviderRequest({
  $core.String? clientId,
  $core.String? name,
  $core.String? clientSecret,
  $core.String? authorizationEndpoint,
  $core.String? tokenEndpoint,
  $core.String? userEndpoint,
  $core.Iterable<$core.String>? scopes,
  $11.Options? providerOptions,
}) {
  final _result = create();
  if (clientId != null) {
    _result.clientId = clientId;
  }
  if (name != null) {
    _result.name = name;
  }
  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 (providerOptions != null) {
    _result.providerOptions = providerOptions;
  }
  return _result;
}