APIRequestEntity constructor
const
APIRequestEntity({
- QueryTypes type = QueryTypes.api,
- required ID id,
- required String requestName,
- required ProjectID projectID,
- required ApiRequestAuthorizationEntity authorization,
- required APIRequestMethods requestType,
- required String baseUrl,
- required List<
ApiRequestMapEntity> paths, - required List<
ApiRequestMapEntity> headers, - required List<
ApiRequestMapEntity> urlParams, - required List<
ApiRequestMapEntity> body, - required QueryReturnEntity returnEntity,
- required ID? repositoryID,
- RangeValues acceptedStatusCodeRange = const RangeValues(200, 299),
- String errorMessage = 'Failed request, code: {{code}}, message: {{body}}',
- 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 = '',
});