toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var errors = this.errors;
  var query = this.query;
  var structure = this.structure;

  final json = <String, Object?>{};
  json[r'errors'] = errors;
  json[r'query'] = query;
  if (structure != null) {
    json[r'structure'] = structure.toJson();
  }
  return json;
}