postRequest method
Implementation
@override
Future postRequest(
{required String path, dynamic model, Options? options}) async {
dynamic responseJson;
final dio = Dio(option);
try {
var response = await dio.post(path, data: model, options: options);
responseJson = returnResponse(response);
} on SocketException {
throw FetchDataException('No Internet Connection');
}
return responseJson;
}