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 (created != null) {
    json[r'created'] = created;
  }
  if (modified != null) {
    json[r'modified'] = modified;
  }
  if (author != null) {
    json[r'author'] = author;
  }
  if (responsible != null) {
    json[r'responsible'] = responsible;
  }
  if (medicalLocationId != null) {
    json[r'medicalLocationId'] = medicalLocationId;
  }
  json[r'tags'] = tags.toList();
  json[r'codes'] = codes.toList();
  if (endOfLife != null) {
    json[r'endOfLife'] = endOfLife;
  }
  if (deletionDate != null) {
    json[r'deletionDate'] = deletionDate;
  }
  if (attachment != null) {
    json[r'attachment'] = attachment;
  }
  if (documentType != null) {
    json[r'documentType'] = documentType;
  }
  if (mainUti != null) {
    json[r'mainUti'] = mainUti;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  json[r'otherUtis'] = otherUtis.toList();
  if (attachmentId != null) {
    json[r'attachmentId'] = attachmentId;
  }
  if (version != null) {
    json[r'version'] = version;
  }
  if (owner != null) {
    json[r'owner'] = owner;
  }
  if (guid != null) {
    json[r'guid'] = guid;
  }
  if (group != null) {
    json[r'group'] = group;
  }
  if (descr != null) {
    json[r'descr'] = descr;
  }
  if (disabled != null) {
    json[r'disabled'] = disabled;
  }
  if (specialty != null) {
    json[r'specialty'] = specialty;
  }
  return json;
}