getMetaData<TData> method

Future<TData> getMetaData<TData>(
  1. String key
)

Implementation

Future<TData> getMetaData<TData>(String key) async {
  final response = await request<Map<String, dynamic>, Map<String, dynamic>>(
      api.baseUrl, '$endpointSuffix?\$$key', null, ApiRequestMethod.GET,
      headers: api.getRequestHeaders());
  response.throwOnError();
  return response.data[key] as TData;
}