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