toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = id;
  if (rev != null) {
    json[r'rev'] = rev;
  }
  if (deletionDate != null) {
    json[r'deletionDate'] = deletionDate;
  }
  if (userId != null) {
    json[r'userId'] = userId;
  }
  if (descr != null) {
    json[r'descr'] = descr;
  }
  json[r'keywords'] = keywords.toList();
  if (entityType != null) {
    json[r'entityType'] = entityType;
  }
  if (subType != null) {
    json[r'subType'] = subType;
  }
  if (defaultTemplate != null) {
    json[r'defaultTemplate'] = defaultTemplate;
  }
  json[r'entity'] = entity;
  return json;
}