copyWith method

Json2DartConfig copyWith({
  1. bool? isApi,
  2. bool? isEndpoint,
  3. bool? isUnitTest,
  4. bool? isOnlyUnitTest,
  5. bool? isReplace,
  6. bool? isFormat,
  7. bool? isCubit,
  8. String? featureName,
  9. String? pageName,
  10. String? appsName,
  11. String? bodyDateFormat,
  12. String? responseDateFormat,
})

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,
  );
}