copyWith method
Creates a copy of this config with updated values
Implementation
Json2DartConfig copyWith({
bool? isApi,
bool? isEndpoint,
bool? isUnitTest,
bool? isOnlyUnitTest,
bool? isReplace,
bool? isFormat,
bool? isCubit,
String? featureName,
String? pageName,
String? appsName,
String? bodyDateFormat,
String? responseDateFormat,
}) {
return Json2DartConfig(
isApi: isApi ?? this.isApi,
isEndpoint: isEndpoint ?? this.isEndpoint,
isUnitTest: isUnitTest ?? this.isUnitTest,
isOnlyUnitTest: isOnlyUnitTest ?? this.isOnlyUnitTest,
isReplace: isReplace ?? this.isReplace,
isFormat: isFormat ?? this.isFormat,
isCubit: isCubit ?? this.isCubit,
featureName: featureName ?? this.featureName,
pageName: pageName ?? this.pageName,
appsName: appsName ?? this.appsName,
bodyDateFormat: bodyDateFormat ?? this.bodyDateFormat,
responseDateFormat: responseDateFormat ?? this.responseDateFormat,
);
}