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 (value != null) {
    json[r'value'] = value;
  }
  json[r'subWords'] = subWords.toList();
  if (userId != null) {
    json[r'userId'] = userId;
  }
  return json;
}