ApiProcessor class

Processes individual APIs within the Json2Dart generation workflow

This processor handles API-specific code generation including body models, response models, entities, and mappers.

Constructors

ApiProcessor({required BodyModelGenerator bodyGenerator, required ResponseModelGenerator responseGenerator, required EntityGenerator entityGenerator, required MapperGenerator mapperGenerator, required FileOperationService fileService, required Set<String> extraDirectories, bool verbose = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processApi({required String featurePath, required String featureName, required String pageName, required String pagePath, required String apiName, required dynamic bodyData, required dynamic responseData, required String method, required String pathUrl, required List<String> paramPath, required String? header, required Map<String, dynamic>? cacheStrategy, required Json2DartConfig globalConfig, required String returnData, required String? dirExtra}) Future<bool>
Processes a single API and generates all required code
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited