APIRequestEntity class

Inheritance

Constructors

APIRequestEntity.new({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 = ''})
const

Properties

acceptedStatusCodeRange RangeValues
final
authorization ApiRequestAuthorizationEntity
final
baseUrl String
final
body List<ApiRequestMapEntity>
final
errorJsonPath String
final
errorMessage String
final
hashCode int
The hash code for this object.
no setterinherited
headers List<ApiRequestMapEntity>
final
id ID
finalinherited
paths List<ApiRequestMapEntity>
final
projectID ProjectID
finalinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
repositoryID ID?
finalinherited
requestName String
finalinherited
requestType APIRequestMethods
final
returnEntity QueryReturnEntity
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
type QueryTypes
finalinherited
urlParams List<ApiRequestMapEntity>
final

Methods

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}) APIRequestEntity
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) APIRequestEntity
override