OpenApiLibraryGenerator class

Constructors

OpenApiLibraryGenerator(APIDocument api, String baseName, String partFileName, String freezedPartFileName, {bool useNullSafetySyntax = false, bool apiMethodsWithRequest = 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
freezed → Reference
final
freezedPartFileName String
final
hashCode int
The hash code for this object.
no setterinherited
jsonKey → Reference
final
jsonSerializable → Reference
final
jsonValue → Reference
final
lb → LibraryBuilder
final
partFileName 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