toJson method
Implementation
Map<String, Object?> toJson() {
var view = this.view;
var exportView = this.exportView;
var styledView = this.styledView;
var storage = this.storage;
var editor = this.editor;
var editor2 = this.editor2;
var wiki = this.wiki;
var anonymousExportView = this.anonymousExportView;
var plain = this.plain;
var atlasDocFormat = this.atlasDocFormat;
var raw = this.raw;
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 (editor != null) {
json[r'editor'] = editor.toJson();
}
if (editor2 != null) {
json[r'editor2'] = editor2.toJson();
}
if (wiki != null) {
json[r'wiki'] = wiki.toJson();
}
if (anonymousExportView != null) {
json[r'anonymous_export_view'] = anonymousExportView.toJson();
}
if (plain != null) {
json[r'plain'] = plain.toJson();
}
if (atlasDocFormat != null) {
json[r'atlas_doc_format'] = atlasDocFormat.toJson();
}
if (raw != null) {
json[r'raw'] = raw.toJson();
}
return json;
}