get<T> abstract method

Future<T> get<T>(
  1. APIEndpoint endpoint, {
  2. required bool requiresAuth,
  3. required T fromJson(
    1. Map<String, dynamic>
    ),
})

Perform a GET request with typed response.

Implementation

Future<T> get<T>(
  APIEndpoint endpoint, {
  required bool requiresAuth,
  required T Function(Map<String, dynamic>) fromJson,
});