patientCryptoConfig function
Implementation
BaseCryptoConfig<DecryptedPatientDto, PatientDto> patientCryptoConfig(Crypto crypto) {
return BaseCryptoConfig(
crypto,
(dec) async => Tuple2(PatientDto.fromJson(toJsonDeep(dec)..remove('note'))!, dec.note != null ? Uint8List.fromList(json.encode({'note': dec.note}).codeUnits) : null),
(cry, data) async => DecryptedPatientDto.fromJson(toJsonDeep(cry)..addAll(data != null ? json.decode(String.fromCharCodes(data)) : {}))!
);
}