GitHubEnterpriseServerConfig constructor

GitHubEnterpriseServerConfig({
  1. String? clientId,
  2. String? authorizationEndpoint,
  3. String? tokenEndpoint,
  4. String? userEndpoint,
  5. Iterable<String>? scopes,
})

Implementation

factory GitHubEnterpriseServerConfig({
  $core.String? clientId,
  $core.String? authorizationEndpoint,
  $core.String? tokenEndpoint,
  $core.String? userEndpoint,
  $core.Iterable<$core.String>? scopes,
}) {
  final $result = create();
  if (clientId != null) {
    $result.clientId = clientId;
  }
  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);
  }
  return $result;
}