phoneLogAnoymizer function Null safety

Datum phoneLogAnoymizer(
  1. Datum datum
)

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

Implementation

Datum phoneLogAnoymizer(Datum datum) {
  assert(datum is PhoneLogDatum);
  PhoneLogDatum log = datum as PhoneLogDatum;
  log.phoneLog.forEach((call) => phoneCallAnoymizer(call));
  return log;
}