copyWith method

Monitor copyWith({
  1. int? id,
  2. String? url,
  3. String? scheme,
  4. String? host,
  5. String? path,
  6. String? query,
  7. String? protocol,
  8. String? method,
  9. String? requestHeaders,
  10. String? requestBody,
  11. String? requestContentType,
  12. int? requestContentLength,
  13. int? requestDate,
  14. String? responseHeaders,
  15. String? responseBody,
  16. String? responseContentType,
  17. int? responseContentLength,
  18. int? responseDate,
  19. String? responseTlsVersion,
  20. String? responseCipherSuite,
  21. int? responseCode,
  22. String? responseMessage,
  23. String? error,
  24. String? curl,
  25. String? source,
  26. int? outerId,
})

Implementation

Monitor copyWith({
  int? id,
  String? url,
  String? scheme,
  String? host,
  String? path,
  String? query,
  String? protocol,
  String? method,
  String? requestHeaders,
  String? requestBody,
  String? requestContentType,
  int? requestContentLength,
  int? requestDate,
  String? responseHeaders,
  String? responseBody,
  String? responseContentType,
  int? responseContentLength,
  int? responseDate,
  String? responseTlsVersion,
  String? responseCipherSuite,
  int? responseCode,
  String? responseMessage,
  String? error,
  String? curl,
  String? source,
  int? outerId
}) {
  return Monitor(
      id: id ?? this.id,
      url: url ?? this.url,
      scheme: scheme ?? this.scheme,
      host: host ?? this.host,
      path: path ?? this.path,
      query: query ?? this.query,
      protocol: protocol ?? this.protocol,
      method: method ?? this.method,
      requestHeaders: requestHeaders ?? this.requestHeaders,
      requestBody: requestBody ?? this.requestBody,
      requestContentType: requestContentType ?? this.requestContentType,
      requestContentLength: requestContentLength ?? this.requestContentLength,
      requestDate: requestDate ?? this.requestDate,
      responseHeaders: responseHeaders ?? this.responseHeaders,
      responseBody: responseBody ?? this.responseBody,
      responseContentType: responseContentType ?? this.responseContentType,
      responseContentLength:
      responseContentLength ?? this.responseContentLength,
      responseDate: responseDate ?? this.responseDate,
      responseTlsVersion: responseTlsVersion ?? this.responseTlsVersion,
      responseCipherSuite: responseCipherSuite ?? this.responseCipherSuite,
      responseCode: responseCode ?? this.responseCode,
      responseMessage: responseMessage ?? this.responseMessage,
      error: error ?? this.error,
      curl: curl ?? this.curl,
      source: source??this.source,
      outerId: outerId??this.outerId
  );
}