encode static method
Implementation
static Map<String, dynamic> encode(EncryptedContent value) {
Map<String, dynamic> entityAsMap = {
"stringValue" : value.stringValue,
"numberValue" : value.numberValue,
"booleanValue" : value.booleanValue,
"instantValue" : value.instantValue?.millisecondsSinceEpoch,
"fuzzyDateValue" : value.fuzzyDateValue,
"binaryValue" : value.binaryValue == null ? null : base64Encode(value.binaryValue as List<int>),
"documentId" : value.documentId,
"measureValue" : value.measureValue == null ? null : Measure.encode(value.measureValue!),
"medicationValue" : value.medicationValue == null ? null : Medication.encode(value.medicationValue!),
"timeSeries" : value.timeSeries == null ? null : TimeSeries.encode(value.timeSeries!),
"compoundValue" : value.compoundValue?.map((x0) => EncryptedService.encode(x0)).toList(),
"ratio" : value.ratio?.map((x0) => Measure.encode(x0)).toList(),
"range" : value.range?.map((x0) => Measure.encode(x0)).toList()
};
return entityAsMap;
}