encode static method
Implementation
static Map<String, dynamic> encode(EncryptedCalendarItem value) {
Map<String, dynamic> entityAsMap = {
"id" : value.id,
"rev" : value.rev,
"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,
"deletionDate" : value.deletionDate,
"title" : value.title,
"calendarItemTypeId" : value.calendarItemTypeId,
"masterCalendarItemId" : value.masterCalendarItemId,
"patientId" : value.patientId,
"important" : value.important,
"homeVisit" : value.homeVisit,
"phoneNumber" : value.phoneNumber,
"placeId" : value.placeId,
"address" : value.address == null ? null : EncryptedAddress.encode(value.address!),
"addressText" : value.addressText,
"startTime" : value.startTime,
"endTime" : value.endTime,
"confirmationTime" : value.confirmationTime,
"cancellationTimestamp" : value.cancellationTimestamp,
"confirmationId" : value.confirmationId,
"duration" : value.duration,
"allDay" : value.allDay,
"details" : value.details,
"wasMigrated" : value.wasMigrated,
"agendaId" : value.agendaId,
"hcpId" : value.hcpId,
"recurrenceId" : value.recurrenceId,
"meetingTags" : value.meetingTags.map((x0) => CalendarItemTag.encode(x0)).toList(),
"flowItem" : value.flowItem == null ? null : FlowItem.encode(value.flowItem!),
"secretForeignKeys" : value.secretForeignKeys.map((x0) => x0).toList(),
"cryptedForeignKeys" : value.cryptedForeignKeys.map((k0, v0) => MapEntry(k0, v0.map((x1) => Delegation.encode(x1)).toList())),
"delegations" : value.delegations.map((k0, v0) => MapEntry(k0, v0.map((x1) => Delegation.encode(x1)).toList())),
"encryptionKeys" : value.encryptionKeys.map((k0, v0) => MapEntry(k0, v0.map((x1) => Delegation.encode(x1)).toList())),
"encryptedSelf" : value.encryptedSelf,
"securityMetadata" : value.securityMetadata == null ? null : SecurityMetadata.encode(value.securityMetadata!)
};
return entityAsMap;
}