UserStatusInfo constructor

UserStatusInfo(
  1. Map event
)

Implementation

UserStatusInfo(Map<dynamic, dynamic> event) {
  isDrowsy = event[MetricsInfoKey.isDrowsy.name] ?? false;
  drowsinessIntensity =
      event[MetricsInfoKey.drowsinessIntensity.name] ?? -1001;
  attentionScore = event[MetricsInfoKey.attentionScore.name] ?? -1001;
}