copyWith method
APIRequestEntity
copyWith({
- ID? id,
- String? requestName,
- ProjectID? projectID,
- ApiRequestAuthorizationEntity? authorization,
- APIRequestMethods? requestType,
- String? baseUrl,
- List<
ApiRequestMapEntity> ? paths, - List<
ApiRequestMapEntity> ? headers, - List<
ApiRequestMapEntity> ? urlParams, - List<
ApiRequestMapEntity> ? body, - QueryReturnEntity? returnEntity,
- RangeValues? acceptedStatusCodeRange,
- String? errorMessage,
- String? errorJsonPath,
- ID? repositoryID,
Implementation
APIRequestEntity copyWith({
final ID? id,
final String? requestName,
final ProjectID? projectID,
final ApiRequestAuthorizationEntity? authorization,
final APIRequestMethods? requestType,
final String? baseUrl,
final List<ApiRequestMapEntity>? paths,
final List<ApiRequestMapEntity>? headers,
final List<ApiRequestMapEntity>? urlParams,
final List<ApiRequestMapEntity>? body,
final QueryReturnEntity? returnEntity,
final RangeValues? acceptedStatusCodeRange,
final String? errorMessage,
final String? errorJsonPath,
final ID? repositoryID,
}) =>
APIRequestEntity(
id: id ?? this.id,
requestName: requestName ?? this.requestName,
projectID: projectID ?? this.projectID,
authorization: authorization ?? this.authorization,
requestType: requestType ?? this.requestType,
baseUrl: baseUrl ?? this.baseUrl,
paths: paths ?? this.paths,
headers: headers ?? this.headers,
urlParams: urlParams ?? this.urlParams,
body: body ?? this.body,
returnEntity: returnEntity ?? this.returnEntity,
acceptedStatusCodeRange:
acceptedStatusCodeRange ?? this.acceptedStatusCodeRange,
errorMessage: errorMessage ?? this.errorMessage,
errorJsonPath: errorJsonPath ?? this.errorJsonPath,
repositoryID: repositoryID ?? this.repositoryID,
);