postJson method

  1. @override
Future<Map<String, dynamic>?> postJson(
  1. JSON? json
)
override

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);