copyWith method
Implementation
ResponseDetails copyWith({
int? statusCode,
String? url,
dynamic headers,
dynamic responseBody,
}) {
return ResponseDetails(
url: url ?? this.url,
statusCode: statusCode ?? this.statusCode,
headers: headers ?? this.headers,
responseBody: responseBody ?? this.responseBody,
);
}