GereralRepository class

General Repository to interact with any REST API

Constructors

GereralRepository()

Properties

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

Methods

get(Client client, {required String handle, String? baseUrl, Map<String, String>? header, Duration? timeOut, bool enableLogs = false}) Future<Map<String, dynamic>?>
Used to initiate a GET request
local(String json, {bool enableLogs = false}) Future<Map<String, dynamic>?>
Used to convert a locally provided json String to json Map
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(Client client, {required String handle, dynamic body, String? baseUrl, Map<String, String>? header, Duration? timeOut, bool enableLogs = false}) Future<Map<String, dynamic>?>
Used to initiate a POST request
toString() String
A string representation of this object.
inherited

Operators

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