copyWith method
Implementation
InfospectNetworkRequest copyWith({
int? size,
DateTime? time,
Map<String, dynamic>? headers,
dynamic body,
String? contentType,
List<Cookie>? cookies,
Map<String, dynamic>? queryParameters,
List<InfospectFormDataFile>? formDataFiles,
List<InfospectFormDataField>? formDataFields,
}) {
return InfospectNetworkRequest(
size: size ?? this.size,
requestTime: time ?? this.time,
headers: headers ?? this.headers,
body: body ?? this.body,
contentType: contentType ?? this.contentType,
cookies: cookies ?? this.cookies,
queryParameters: queryParameters ?? this.queryParameters,
formDataFiles: formDataFiles ?? this.formDataFiles,
formDataFields: formDataFields ?? this.formDataFields,
);
}