OpenApiLibraryGenerator class
Constructors
- OpenApiLibraryGenerator(APIDocument api, {required String baseName, required String partFileName, String freezedPartFileName = '', bool useNullSafetySyntax = false, bool apiMethodsWithRequest = false, bool generateProvider = false, String providerNamePrefix = '', bool ignoreSecuritySchemes = false})
Properties
- api → APIDocument
-
final
- apiMethodsWithRequest → bool
-
final
- baseName → String
-
base name for this API. Should be in
PascalCase
final -
createdEnums
→ Map<
String, Reference> -
final
-
createdSchema
→ Map<
APISchemaObject, Reference> -
final
- freezedPartFileName → String
-
final
- generateProvider → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreSecuritySchemes → bool
-
final
- jsonKey → Reference
-
final
- jsonSerializable → Reference
-
final
- jsonValue → Reference
-
final
- lb → LibraryBuilder
-
final
- partFileName → String
-
final
- providerNamePrefix → String
-
final
-
routerConfig
→ List<
Expression?> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
securitySchemes
→ Map<
String, Expression> -
final
- securitySchemesClass → ClassBuilder
-
final
- useNullSafetySyntax → bool
-
final
Methods
-
generate(
) → Library -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- mediaTypeJson → const OpenApiContentType