copyWith method
Implementation
InfospectBreakpointPayload copyWith({
String? method,
String? uri,
String? endpoint,
Map<String, String>? headers,
Map<String, String>? queryParameters,
String? body,
int? statusCode,
bool clearStatusCode = false,
}) {
return InfospectBreakpointPayload(
method: method ?? this.method,
uri: uri ?? this.uri,
endpoint: endpoint ?? this.endpoint,
headers: headers ?? this.headers,
queryParameters: queryParameters ?? this.queryParameters,
body: body ?? this.body,
statusCode: clearStatusCode ? null : (statusCode ?? this.statusCode),
);
}