copyWith method
ApiGenerationConfig
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,
Creates a copy of this configuration with the given fields replaced with the new values.
Implementation
ApiGenerationConfig 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,
}) {
return ApiGenerationConfig(
apiName: apiName ?? this.apiName,
featureName: featureName ?? this.featureName,
pageName: pageName ?? this.pageName,
method: method ?? this.method,
pathPage: pathPage ?? this.pathPage,
projectName: projectName ?? this.projectName,
returnData: returnData ?? this.returnData,
appsName: appsName ?? this.appsName,
pathUrl: pathUrl ?? this.pathUrl,
headerPath: headerPath ?? this.headerPath,
json2dart: json2dart ?? this.json2dart,
bodyList: bodyList ?? this.bodyList,
responseList: responseList ?? this.responseList,
cacheStrategy: cacheStrategy ?? this.cacheStrategy,
ttl: ttl ?? this.ttl,
keepExpiredCache: keepExpiredCache ?? this.keepExpiredCache,
);
}