getJson method

  1. @override
Future<Map<String, dynamic>?> getJson()
override

Asynchronously gets a JSON object from the API endpoint using GET.

Implementation

@override
Future<Map<String, dynamic>?> getJson() => JsonApi.instance.get(
    host: host,
    path: path,
    headers: headers,
    queryParameters: queryParameters,
    isHttps: protocol == HttpProtocol.https);