toJson method

Map toJson()

The Map method toJson returns the document as a json

Implementation

Map toJson() {
  return {'query': document, 'variables': variables, 'headers': headers};
}