toJson method
Implementation
Map<String, Object?> toJson() {
var plain = this.plain;
var view = this.view;
var expandable = this.expandable;
final json = <String, Object?>{};
if (plain != null) {
json[r'plain'] = plain.toJson();
}
if (view != null) {
json[r'view'] = view.toJson();
}
if (expandable != null) {
json[r'_expandable'] = expandable.toJson();
}
return json;
}