ApiService class

Annotations
  • @injectable

Constructors

ApiService(Client client)

Properties

client → Client
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete<E>(String url, E fromJsonE(dynamic)) Future<Either<ApiFailure, E>>
get<E>(String url, E fromJsonE(dynamic), {Map<String, String>? queryParams}) Future<Either<ApiFailure, E>>
getValidationMessage(dynamic decodedJson) String?
multiPartFileUpload<E>(String filePath, String tag, String url, Map<String, dynamic> body, E fromJsonE(dynamic)) Future<Either<ApiFailure, E>>
multiPartFileUploadToClient<E>(String filePath, String tag, String url, Map<String, dynamic> body, String jwtToken, E fromJsonE(dynamic)) Future<Either<ApiFailure, E>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPractitionerExcelUpload<E>(String fileName, List<int> fileBytes, List<String?> organizationIds, E fromJsonE(dynamic)) Future<Either<ApiFailure, E>>
patch<E>(String url, Map<String, dynamic>? body, E fromJsonE(dynamic), String readAPIError(Map<String, dynamic>?)) Future<Either<ApiFailure, E>>
post<E>(String url, Map<String, dynamic>? body, E fromJsonE(dynamic)) Future<Either<ApiFailure, E>>
postFormData<E>(String url, Map<String, dynamic>? body, E fromJsonE(dynamic)) Future<Either<ApiFailure, E>>
put<E>(String url, dynamic body, E fromJsonE(Object?)) Future<Either<ApiFailure, E>>
sendRequest<E>(String url, dynamic body, E fromJsonE(dynamic), RequestType type, {Map<String, String>? headers, Map<String, String>? queryParams}) Future<Either<ApiFailure, E>>
toString() String
A string representation of this object.
inherited

Operators

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