encode static method
Implementation
static Map<String, dynamic> encode(EncryptedPlanOfAction value) {
Map<String, dynamic> entityAsMap = {
"id" : value.id,
"created" : value.created,
"modified" : value.modified,
"author" : value.author,
"responsible" : value.responsible,
"medicalLocationId" : value.medicalLocationId,
"tags" : value.tags.map((x0) => CodeStub.encode(x0)).toList(),
"codes" : value.codes.map((x0) => CodeStub.encode(x0)).toList(),
"endOfLife" : value.endOfLife,
"prescriberId" : value.prescriberId,
"valueDate" : value.valueDate,
"openingDate" : value.openingDate,
"closingDate" : value.closingDate,
"deadlineDate" : value.deadlineDate,
"name" : value.name,
"descr" : value.descr,
"note" : value.note,
"idOpeningContact" : value.idOpeningContact,
"idClosingContact" : value.idClosingContact,
"status" : value.status,
"documentIds" : value.documentIds.map((x0) => x0).toList(),
"numberOfCares" : value.numberOfCares,
"careTeamMemberships" : value.careTeamMemberships.map((x0) => x0 == null ? null : EncryptedCareTeamMembership.encode(x0!)).toList(),
"relevant" : value.relevant,
"encryptedSelf" : value.encryptedSelf
};
return entityAsMap;
}