encode static method
Implementation
static Map<String, dynamic> encode(ParagraphAgreement value) {
Map<String, dynamic> entityAsMap = {
"timestamp" : value.timestamp,
"paragraph" : value.paragraph,
"accepted" : value.accepted,
"inTreatment" : value.inTreatment,
"canceled" : value.canceled,
"careProviderReference" : value.careProviderReference,
"decisionReference" : value.decisionReference,
"start" : value.start,
"end" : value.end,
"cancelationDate" : value.cancelationDate,
"quantityValue" : value.quantityValue,
"quantityUnit" : value.quantityUnit,
"ioRequestReference" : value.ioRequestReference,
"responseType" : value.responseType,
"refusalJustification" : value.refusalJustification?.map((k0, v0) => MapEntry(k0, v0)),
"verses" : value.verses?.map((x0) => x0).toList(),
"coverageType" : value.coverageType,
"unitNumber" : value.unitNumber,
"strength" : value.strength,
"strengthUnit" : value.strengthUnit,
"agreementAppendices" : value.agreementAppendices?.map((x0) => AgreementAppendix.encode(x0)).toList(),
"documentId" : value.documentId
};
return entityAsMap;
}