Generator class

Handles whole cycle of generation.

Constructors

Generator.new(GeneratorConfig config, {required OpenApiInfo info, required List<UniversalDataClass> dataClasses, required List<UniversalRestClient> restClients})
Creates a Generator.
const

Properties

config GeneratorConfig
GeneratorConfig that Generator use
final
dataClasses List<UniversalDataClass>
Data classes list used for generation
final
hashCode int
The hash code for this object.
no setterinherited
info OpenApiInfo
Api file info
final
restClients List<UniversalRestClient>
Rest clients list used for generate
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateContent() List<GeneratedFile>
Generates content of files based on OpenApi definition file and return list of GeneratedFile
generateFiles() Future<(OpenApiInfo, GenerationStatistic)>
Generates files based on OpenApi definition file
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