toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var all = this.all;
  var attachment = this.attachment;
  var comment = this.comment;
  var page = this.page;
  var whiteboard = this.whiteboard;

  final json = <String, Object?>{};
  if (all != null) {
    json[r'all'] = all;
  }
  if (attachment != null) {
    json[r'attachment'] = attachment;
  }
  if (comment != null) {
    json[r'comment'] = comment;
  }
  if (page != null) {
    json[r'page'] = page;
  }
  if (whiteboard != null) {
    json[r'whiteboard'] = whiteboard;
  }
  return json;
}