copyWith method
Implementation
RequestDetails copyWith({
String? requestName,
String? requestMethod,
String? url,
int? statusCode,
headers,
requestBody,
responseBody,
DateTime? sentTime,
}) {
return RequestDetails(
requestName: requestName ?? this.requestName,
requestMethod: requestMethod ?? this.requestMethod,
url: url ?? this.url,
statusCode: statusCode ?? this.statusCode,
headers: headers ?? this.headers,
requestBody: requestBody ?? this.requestBody,
responseBody: responseBody ?? this.responseBody,
sentTime: sentTime ?? this.sentTime,
);
}