getElement method

Future<TData> getElement({
  1. Map<String, dynamic>? params,
  2. Map<String, String?>? query,
})

Implementation

Future<TData> getElement(
    {Map<String, dynamic>? params, Map<String, String?>? query}) async {
  final response = await api.getObject('$endpointSuffix',
      urlParams: params, bean: bean, query: query);
  response.throwOnError();
  return response.data;
}