OpenApiV31OAuth2SecurityScheme class final
OAuth 2.0 authorization settings.
- Inheritance
-
- Object
- OpenApiV31SecurityScheme
- OpenApiV31OAuth2SecurityScheme
Constructors
-
OpenApiV31OAuth2SecurityScheme({required OpenApiV31OAuthFlows flows, String? description, Map<
String, JsonValue> extensions = const {}, Map<String, JsonValue> extraFields = const {}}) - Declares the OAuth grants available to clients.
Properties
- description → String?
-
Description supplied by the document author.
final
-
extensions
→ Map<
String, JsonValue> -
Specification extensions keyed by their
x-names. Defaults to empty.finalinherited -
extraFields
→ Map<
String, JsonValue> -
Unrecognized fields retained for JSON export. Defaults to empty.
finalinherited
- flows → OpenApiV31OAuthFlows
-
OAuth flows supported by this scheme.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → OpenApiV31SecuritySchemeType
-
Discriminator for the authentication mechanism.
no setteroverride
Methods
-
extraToJson(
) → Map< String, Object?> -
Exports extensions and unrecognized fields as JSON.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
Returns a detached JSON representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited