toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (id != null) {
    json[r'id'] = id;
  }
  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 (descr != null) {
    json[r'descr'] = descr;
  }
  if (protocol != null) {
    json[r'protocol'] = protocol;
  }
  if (status != null) {
    json[r'status'] = status;
  }
  if (formId != null) {
    json[r'formId'] = formId;
  }
  if (planOfActionId != null) {
    json[r'planOfActionId'] = planOfActionId;
  }
  if (healthElementId != null) {
    json[r'healthElementId'] = healthElementId;
  }
  if (classificationId != null) {
    json[r'classificationId'] = classificationId;
  }
  json[r'services'] = services;
  if (encryptedSelf != null) {
    json[r'encryptedSelf'] = encryptedSelf;
  }
  return json;
}