post<T> method
POST request
Implementation
Future<T> post<T>(
String path, {
dynamic data,
Map<String, dynamic>? queryParameters,
}) async {
try {
final response = await _dio.post<Map<String, dynamic>>(
path,
data: data,
queryParameters: queryParameters,
);
return _handleResponse<T>(response);
} on DioException catch (e) {
throw ApiException.from(e);
}
}