postWithPath<T> method

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

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

Implementation

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