copyWith method

SwaggerPath copyWith({
  1. String? path,
  2. String? tag,
  3. String? method,
  4. String? summary,
  5. List<SwaggerResponse>? responses,
  6. SwaggerContent? requestBody,
  7. SwaggerQuery? queryParams,
  8. List<Map<String, dynamic>>? headers,
  9. String? description,
})

Implementation

SwaggerPath copyWith({
  String? path,
  String? tag,
  String? method,
  String? summary,
  List<SwaggerResponse>? responses,
  SwaggerContent? requestBody,
  SwaggerQuery? queryParams,
  List<Map<String, dynamic>>? headers,
  String? description,
}) {
  return SwaggerPath(
    path: path ?? this.path,
    tag: tag ?? this.tag,
    method: method ?? this.method,
    summary: summary ?? this.summary,
    responses: responses ?? this.responses,
    requestBody: requestBody ?? this.requestBody,
    queryParams: queryParams ?? this.queryParams,
    headers: headers ?? this.headers,
    description: description ?? this.description,
  );
}