copyWith method

APIRequestEntity copyWith({
  1. ID? id,
  2. String? requestName,
  3. ProjectID? projectID,
  4. ApiRequestAuthorizationEntity? authorization,
  5. APIRequestMethods? requestType,
  6. String? baseUrl,
  7. List<ApiRequestMapEntity>? paths,
  8. List<ApiRequestMapEntity>? headers,
  9. List<ApiRequestMapEntity>? urlParams,
  10. List<ApiRequestMapEntity>? body,
  11. QueryReturnEntity? returnEntity,
  12. RangeValues? acceptedStatusCodeRange,
  13. String? errorMessage,
  14. String? errorJsonPath,
  15. 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,
    );