toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (id != null) {
    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;
  }
  if (deletionDate != null) {
    json[r'deletionDate'] = deletionDate;
  }
  if (objectStoreReference != null) {
    json[r'objectStoreReference'] = objectStoreReference;
  }
  if (mainUti != null) {
    json[r'mainUti'] = mainUti;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (version != null) {
    json[r'version'] = version;
  }
  json[r'otherUtis'] = otherUtis.toList();
  if (externalUuid != null) {
    json[r'externalUuid'] = externalUuid;
  }
  if (size != null) {
    json[r'size'] = size;
  }
  if (hash != null) {
    json[r'hash'] = hash;
  }
  if (attachmentId != null) {
    json[r'attachmentId'] = attachmentId;
  }
  return json;
}