copyWith method
SwaggerPath
copyWith({
- String? path,
- String? tag,
- String? method,
- String? summary,
- List<
SwaggerResponse> ? responses, - SwaggerContent? requestBody,
- SwaggerQuery? queryParams,
- List<
Map< ? headers,String, dynamic> > - 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,
);
}