ComponentsGenerator class

A generator class that handles the creation of components parameters from OpenAPI/Swagger specifications.

This class is responsible for processing components schemas and generating the corresponding Dart code for components parameters, including nested objects and references to other schemas.

Constructors

ComponentsGenerator({required Components components, required bool isForEntities})
Creates a new ComponentsGenerator instance.

Properties

components Components
The OpenAPI components that contain schemas and references.
final
hashCode int
The hash code for this object.
no setterinherited
isForEntities bool
Flag indicating whether the generator is being used for entity classes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateComponents({required MediaTypeContent? content}) List<GeneratedParameters>
Generates components parameters from the provided content.
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