toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'parameters'] = parameters;
  if (hospitalisation != null) {
    json[r'hospitalisation'] = hospitalisation;
  }
  if (ambulatory != null) {
    json[r'ambulatory'] = ambulatory;
  }
  if (dental != null) {
    json[r'dental'] = dental;
  }
  if (identificationNumber != null) {
    json[r'identificationNumber'] = identificationNumber;
  }
  if (insuranceId != null) {
    json[r'insuranceId'] = insuranceId;
  }
  if (startDate != null) {
    json[r'startDate'] = startDate;
  }
  if (endDate != null) {
    json[r'endDate'] = endDate;
  }
  if (titularyId != null) {
    json[r'titularyId'] = titularyId;
  }
  if (encryptedSelf != null) {
    json[r'encryptedSelf'] = encryptedSelf;
  }
  return json;
}