addDocumentDeleted static method

String addDocumentDeleted(
  1. JsonObjectLite document
)

Adds a CouchDB _deleted to the json body of a document

Implementation

static String addDocumentDeleted(
    jsonobject.JsonObjectLite<dynamic> document) {
  document.isImmutable = false;
  document['_deleted'] = true;
  return json.encode(document);
}