phoneLogAnoymizer function

Data phoneLogAnoymizer(
  1. Data data
)

A PhoneLog anonymizer function. Anonymizes each PhoneCall entry in the log using the phoneCallAnoymizer function.

Implementation

Data phoneLogAnoymizer(Data data) {
  assert(data is PhoneLog);
  PhoneLog log = data as PhoneLog;
  for (var call in log.phoneLog) {
    phoneCallAnoymizer(call);
  }
  return log;
}