ApiGenerationConfig class

Configuration class containing all parameters for API generation.

Encapsulates command line arguments, project settings, and generation options in a type-safe, immutable data structure.

Constructors

ApiGenerationConfig({required String apiName, required String featureName, required String pageName, required String method, required String pathPage, required String projectName, required String returnData, String? appsName, String? pathUrl, String? headerPath, bool json2dart = false, bool bodyList = false, bool responseList = false, CacheStrategy? cacheStrategy, int? ttl, bool? keepExpiredCache})
const

Properties

apiClassName → String
no setter
apiMethodName → String
no setter
apiName → String
final
appsName → String?
final
bodyList → bool
final
cacheStrategy → CacheStrategy?
final
featureName → String
final
hashCode → int
The hash code for this object.
no setterinherited
headerPath → String?
final
isReturnDataModel → bool
no setter
json2dart → bool
final
keepExpiredCache → bool?
final
method → String
final
pageClassName → String
no setter
pageName → String
final
pathPage → String
final
pathUrl → String?
final
projectName → String
final
responseList → bool
final
returnData → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
ttl → int?
final

Methods

copyWith({String? apiName, String? featureName, String? pageName, String? method, String? pathPage, String? projectName, String? returnData, String? appsName, String? pathUrl, String? headerPath, bool? json2dart, bool? bodyList, bool? responseList, CacheStrategy? cacheStrategy, int? ttl, bool? keepExpiredCache}) → ApiGenerationConfig
Creates a copy of this configuration with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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