toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var view = this.view;
  var exportView = this.exportView;
  var styledView = this.styledView;
  var storage = this.storage;
  var wiki = this.wiki;
  var editor = this.editor;
  var editor2 = this.editor2;
  var anonymousExportView = this.anonymousExportView;
  var atlasDocFormat = this.atlasDocFormat;
  var dynamic$ = this.dynamic$;
  var raw = this.raw;
  var expandable = this.expandable;

  final json = <String, Object?>{};
  if (view != null) {
    json[r'view'] = view.toJson();
  }
  if (exportView != null) {
    json[r'export_view'] = exportView.toJson();
  }
  if (styledView != null) {
    json[r'styled_view'] = styledView.toJson();
  }
  if (storage != null) {
    json[r'storage'] = storage.toJson();
  }
  if (wiki != null) {
    json[r'wiki'] = wiki.toJson();
  }
  if (editor != null) {
    json[r'editor'] = editor.toJson();
  }
  if (editor2 != null) {
    json[r'editor2'] = editor2.toJson();
  }
  if (anonymousExportView != null) {
    json[r'anonymous_export_view'] = anonymousExportView.toJson();
  }
  if (atlasDocFormat != null) {
    json[r'atlas_doc_format'] = atlasDocFormat.toJson();
  }
  if (dynamic$ != null) {
    json[r'dynamic'] = dynamic$.toJson();
  }
  if (raw != null) {
    json[r'raw'] = raw.toJson();
  }
  if (expandable != null) {
    json[r'_expandable'] = expandable.toJson();
  }
  return json;
}