copyWith method

CallCacheModel copyWith({
  1. String? data,
  2. String? path,
  3. String? uri,
  4. String? queryParameters,
  5. String? method,
  6. String? baseUrl,
  7. String? connectTimeout,
  8. String? contentType,
  9. String? extra,
  10. String? followRedirects,
  11. String? listFormat,
  12. String? receiveTimeout,
  13. String? responseType,
  14. String? headers,
  15. String? validateStatus,
  16. String? isCompleted,
  17. String? date,
  18. String? response,
  19. String? statusCode,
  20. String? eventMessage,
  21. String? startDate,
  22. String? endDate,
  23. String? totalSent,
  24. String? totalReceived,
  25. int? order,
})

Implementation

CallCacheModel copyWith({
  String? data,
  String? path,
  String? uri,
  String? queryParameters,
  String? method,
  String? baseUrl,
  String? connectTimeout,
  String? contentType,
  String? extra,
  String? followRedirects,
  String? listFormat,
  String? receiveTimeout,
  String? responseType,
  String? headers,
  String? validateStatus,
  String? isCompleted,
  String? date,
  String? response,
  String? statusCode,
  String? eventMessage,
  String? startDate,
  String? endDate,
  String? totalSent,
  String? totalReceived,
  int? order,
}) {
  return CallCacheModel(
    data: data ?? this.data,
    path: path ?? this.path,
    uri: uri ?? this.uri,
    queryParameters: queryParameters ?? this.queryParameters,
    method: method ?? this.method,
    baseUrl: baseUrl ?? this.baseUrl,
    connectTimeout: connectTimeout ?? this.connectTimeout,
    contentType: contentType ?? this.contentType,
    extra: extra ?? this.extra,
    followRedirects: followRedirects ?? this.followRedirects,
    listFormat: listFormat ?? this.listFormat,
    receiveTimeout: receiveTimeout ?? this.receiveTimeout,
    responseType: responseType ?? this.responseType,
    headers: headers ?? this.headers,
    validateStatus: validateStatus ?? this.validateStatus,
    isCompleted: isCompleted ?? this.isCompleted,
    response: response ?? this.response,
    statusCode: statusCode ?? this.statusCode,
    eventMessage: eventMessage ?? this.eventMessage,
    startDate: startDate ?? this.startDate,
    endDate: endDate ?? this.endDate,
    totalSent: totalSent ?? this.totalSent,
    totalReceived: totalReceived ?? this.totalReceived,
    order: order ?? this.order,
  );
}