OidcProvider constructor

OidcProvider({
  1. String? id,
  2. OidcProviderType? type,
  3. String? secret,
  4. String? name,
  5. bool? enabled,
  6. String? url,
  7. Iterable<String>? scopes,
  8. String? giveRole,
  9. String? redirectUrl,
})

Implementation

factory OidcProvider({
  $core.String? id,
  OidcProviderType? type,
  $core.String? secret,
  $core.String? logo,
  $core.String? name,
  $core.bool? enabled,
  $core.String? url,
  $core.Iterable<$core.String>? scopes,
  $core.String? giveRole,
  $core.String? redirectUrl,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (type != null) {
    _result.type = type;
  }
  if (secret != null) {
    _result.secret = secret;
  }
  if (logo != null) {
    _result.logo = logo;
  }
  if (name != null) {
    _result.name = name;
  }
  if (enabled != null) {
    _result.enabled = enabled;
  }
  if (url != null) {
    _result.url = url;
  }
  if (scopes != null) {
    _result.scopes.addAll(scopes);
  }
  if (giveRole != null) {
    _result.giveRole = giveRole;
  }
  if (redirectUrl != null) {
    _result.redirectUrl = redirectUrl;
  }
  return _result;
}