APIRequestEntity constructor

const APIRequestEntity({
  1. QueryTypes type = QueryTypes.api,
  2. required ID id,
  3. required String requestName,
  4. required ProjectID projectID,
  5. required ApiRequestAuthorizationEntity authorization,
  6. required APIRequestMethods requestType,
  7. required String baseUrl,
  8. required List<ApiRequestMapEntity> paths,
  9. required List<ApiRequestMapEntity> headers,
  10. required List<ApiRequestMapEntity> urlParams,
  11. required List<ApiRequestMapEntity> body,
  12. required QueryReturnEntity returnEntity,
  13. required ID? repositoryID,
  14. RangeValues acceptedStatusCodeRange = const RangeValues(200, 299),
  15. String errorMessage = 'Failed request, code: {{code}}, message: {{body}}',
  16. String errorJsonPath = '',
})

Implementation

const APIRequestEntity({
  super.type = QueryTypes.api,
  required super.id,
  required super.requestName,
  required super.projectID,
  required this.authorization,
  required this.requestType,
  required this.baseUrl,
  required this.paths,
  required this.headers,
  required this.urlParams,
  required this.body,
  required super.returnEntity,
  required super.repositoryID,
  this.acceptedStatusCodeRange = const RangeValues(200, 299),
  this.errorMessage = 'Failed request, code: {{code}}, message: {{body}}',
  this.errorJsonPath = '',
});