copyWith method

HttpRequestRecord copyWith({
  1. String? id,
  2. String? method,
  3. String? url,
  4. Map<String, dynamic>? headers,
  5. dynamic body,
  6. DateTime? timestamp,
  7. HttpResponseRecord? response,
})

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