postJson method
Asynchronously posts a json
document to the API endpoint using POST.
Returns the (updated) json
.
Implementation
@override
Future<Map<String, dynamic>?> postJson(JSON? json) => JsonApi.instance.post(
body: json,
host: host,
path: path,
headers: headers,
queryParameters: queryParameters,
isHttps: protocol == HttpProtocol.https);