toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'title'] = this.title;
  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.accountId != null) {
    json[r'accountId'] = this.accountId;
  } else {
    json[r'accountId'] = null;
  }
  if (this.provider != null) {
    json[r'provider'] = this.provider;
  } else {
    json[r'provider'] = null;
  }
  return json;
}