postWithPath<T> method
Future<T>
postWithPath<T>(})
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);
}