EmpaticaDataEvent.fromMap constructor
EmpaticaDataEvent.fromMap(
- Map map
Implementation
factory EmpaticaDataEvent.fromMap(Map<dynamic, dynamic> map) {
final String type = map['type'];
switch (type) {
case 'ReceiveBVP':
return ReceiveBVP.fromMap(map);
case 'ReceiveGSR':
return ReceiveGSR.fromMap(map);
case 'ReceiveIBI':
return ReceiveIBI.fromMap(map);
case 'ReceiveTemperature':
return ReceiveTemperature.fromMap(map);
case 'ReceiveAcceleration':
return ReceiveAcceleration.fromMap(map);
case 'ReceiveBatteryLevel':
return ReceieveBatteryLevel.fromMap(map);
case 'ReceiveTag':
return ReceiveTag.fromMap(map);
case 'UpdateOnWristStatus':
return UpdateOnWristStatus.fromMap(map);
default:
return EmpaticaDataEvent();
}
}