apiCall method

Future<Response> apiCall(
  1. NetworkState state
)
override

Implementation

Future<Response> apiCall(NetworkState state) async {
  Uri finalEndpoint = endpoint(state.https, getFinalEndpoint(url, state));
  print("PUT $finalEndpoint");
  // print(body);
  return await put(
    finalEndpoint,
    body: json != null ? json : jsonEncode(body),
    headers: headers(state),
    encoding: Encoding.getByName("application/json"),
  );
}