copyWith method

InfospectNetworkResponse copyWith({
  1. int? status,
  2. int? size,
  3. DateTime? time,
  4. dynamic body,
  5. Map<String, String>? headers,
})

Implementation

InfospectNetworkResponse copyWith({
  int? status,
  int? size,
  DateTime? time,
  dynamic body,
  Map<String, String>? headers,
}) {
  return InfospectNetworkResponse(
    status: status ?? this.status,
    size: size ?? this.size,
    responseTime: time ?? this.time,
    body: body ?? this.body,
    headers: headers ?? this.headers,
  );
}