getWithPath<T> method

  1. @override
Future<T> getWithPath<T>(
  1. String path, {
  2. required bool requiresAuth,
  3. required T fromJson(
    1. Map<String, dynamic>
    ),
})
override

Perform a GET with custom path (for parameterized endpoints).

Implementation

@override
Future<T> getWithPath<T>(
  String path, {
  required bool requiresAuth,
  required T Function(Map<String, dynamic>) fromJson,
}) async {
  final responseData =
      await _getRawWithPath(path, requiresAuth: requiresAuth);
  return _decodeResponse(responseData, fromJson);
}