toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var expandable = this.expandable;
  var keys = this.keys;
  var contexts = this.contexts;
  var uris = this.uris;
  var tags = this.tags;
  var superbatch = this.superbatch;

  final json = <String, Object?>{};
  if (expandable != null) {
    json[r'_expandable'] = expandable.toJson();
  }
  json[r'keys'] = keys;
  json[r'contexts'] = contexts;
  if (uris != null) {
    json[r'uris'] = uris.toJson();
  }
  if (tags != null) {
    json[r'tags'] = tags.toJson();
  }
  if (superbatch != null) {
    json[r'superbatch'] = superbatch.toJson();
  }
  return json;
}