copyWith method

ApiLogConfig copyWith({
  1. bool? queryParams,
  2. bool? requestHeader,
  3. bool? requestBody,
  4. bool? response,
  5. bool? responseHeader,
  6. bool? curl,
  7. int? maxResponseLength,
  8. bool? hideEmptyValue,
})

Returns a copy of this config with the given fields replaced.

Implementation

ApiLogConfig copyWith({
  bool? queryParams,
  bool? requestHeader,
  bool? requestBody,
  bool? response,
  bool? responseHeader,
  bool? curl,
  int? maxResponseLength,
  bool? hideEmptyValue,
}) {
  return ApiLogConfig(
    queryParams: queryParams ?? this.queryParams,
    requestHeader: requestHeader ?? this.requestHeader,
    requestBody: requestBody ?? this.requestBody,
    response: response ?? this.response,
    responseHeader: responseHeader ?? this.responseHeader,
    curl: curl ?? this.curl,
    maxResponseLength: maxResponseLength ?? this.maxResponseLength,
    hideEmptyValue: hideEmptyValue ?? this.hideEmptyValue,
  );
}