toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var childTypes = this.childTypes;
  var container = this.container;
  var metadata = this.metadata;
  var operations = this.operations;
  var children = this.children;
  var restrictions = this.restrictions;
  var history = this.history;
  var ancestors = this.ancestors;
  var body = this.body;
  var version = this.version;
  var descendants = this.descendants;
  var space = this.space;
  var extensions = this.extensions;
  var schedulePublishDate = this.schedulePublishDate;
  var schedulePublishInfo = this.schedulePublishInfo;
  var macroRenderedOutput = this.macroRenderedOutput;

  final json = <String, Object?>{};
  if (childTypes != null) {
    json[r'childTypes'] = childTypes;
  }
  if (container != null) {
    json[r'container'] = container;
  }
  if (metadata != null) {
    json[r'metadata'] = metadata;
  }
  if (operations != null) {
    json[r'operations'] = operations;
  }
  if (children != null) {
    json[r'children'] = children;
  }
  if (restrictions != null) {
    json[r'restrictions'] = restrictions;
  }
  if (history != null) {
    json[r'history'] = history;
  }
  if (ancestors != null) {
    json[r'ancestors'] = ancestors;
  }
  if (body != null) {
    json[r'body'] = body;
  }
  if (version != null) {
    json[r'version'] = version;
  }
  if (descendants != null) {
    json[r'descendants'] = descendants;
  }
  if (space != null) {
    json[r'space'] = space;
  }
  if (extensions != null) {
    json[r'extensions'] = extensions;
  }
  if (schedulePublishDate != null) {
    json[r'schedulePublishDate'] = schedulePublishDate;
  }
  if (schedulePublishInfo != null) {
    json[r'schedulePublishInfo'] = schedulePublishInfo;
  }
  if (macroRenderedOutput != null) {
    json[r'macroRenderedOutput'] = macroRenderedOutput;
  }
  return json;
}