copyWith method
Implementation
HttpRequestRecord copyWith({
String? id,
String? method,
String? url,
Map<String, dynamic>? headers,
dynamic body,
DateTime? timestamp,
HttpResponseRecord? response,
}) {
return HttpRequestRecord(
id: id ?? this.id,
method: method ?? this.method,
url: url ?? this.url,
headers: headers ?? this.headers,
body: body ?? this.body,
timestamp: timestamp ?? this.timestamp,
response: response ?? this.response,
);
}