apiPostJson method
Returns the body decoded as JSON of the given endpoint
in the
specified RestAPI after a POST request. To proper use, specify
apiBaseUrl
.
Implementation
Future<dynamic> apiPostJson(
String endpoint, {
Map<String, String>? headers,
}) async =>
json.decode(await apiPost(endpoint, headers: headers));