update method

Future<Response> update(
  1. Map values
)

Implementation

Future<Response> update(Map<dynamic, dynamic> values) async {
  if (queryTree.n == null) {
    throw 'Specify service to send request to';
  }

  postData = values;

  String link = toLink() + '&_method=PATCH';
  return await makeRequest(
      endpoint: link, method: RequestMethods.post, params: postData);
}