toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (timestamp != null) {
json[r'timestamp'] = timestamp;
}
if (paragraph != null) {
json[r'paragraph'] = paragraph;
}
if (accepted != null) {
json[r'accepted'] = accepted;
}
if (inTreatment != null) {
json[r'inTreatment'] = inTreatment;
}
if (canceled != null) {
json[r'canceled'] = canceled;
}
if (careProviderReference != null) {
json[r'careProviderReference'] = careProviderReference;
}
if (decisionReference != null) {
json[r'decisionReference'] = decisionReference;
}
if (start != null) {
json[r'start'] = start;
}
if (end != null) {
json[r'end'] = end;
}
if (cancelationDate != null) {
json[r'cancelationDate'] = cancelationDate;
}
if (quantityValue != null) {
json[r'quantityValue'] = quantityValue;
}
if (quantityUnit != null) {
json[r'quantityUnit'] = quantityUnit;
}
if (ioRequestReference != null) {
json[r'ioRequestReference'] = ioRequestReference;
}
if (responseType != null) {
json[r'responseType'] = responseType;
}
json[r'refusalJustification'] = refusalJustification;
json[r'verses'] = verses.toList();
if (coverageType != null) {
json[r'coverageType'] = coverageType;
}
if (unitNumber != null) {
json[r'unitNumber'] = unitNumber;
}
if (strength != null) {
json[r'strength'] = strength;
}
if (strengthUnit != null) {
json[r'strengthUnit'] = strengthUnit;
}
json[r'agreementAppendices'] = agreementAppendices;
if (documentId != null) {
json[r'documentId'] = documentId;
}
return json;
}