toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.title != null) {
    json[r'title'] = this.title;
  } else {
    json[r'title'] = null;
  }
  if (this.content != null) {
    json[r'content'] = this.content;
  } else {
    json[r'content'] = null;
  }
  if (this.icon != null) {
    json[r'icon'] = this.icon;
  } else {
    json[r'icon'] = null;
  }
  if (this.coverImage != null) {
    json[r'coverImage'] = this.coverImage;
  } else {
    json[r'coverImage'] = null;
  }
  if (this.parentId != null) {
    json[r'parentId'] = this.parentId;
  } else {
    json[r'parentId'] = null;
  }
    json[r'properties'] = this.properties;
  if (this.archived != null) {
    json[r'archived'] = this.archived;
  } else {
    json[r'archived'] = null;
  }
  return json;
}