dasesDataTypeToUnit top-level constant
Map a DasesHealthDataType to a HealthDataUnit
.
Implementation
const Map<DasesHealthDataType, HealthDataUnit> dasesDataTypeToUnit = {
DasesHealthDataType.CALORIES_INTAKE: HealthDataUnit.KILOCALORIE,
DasesHealthDataType.ALCOHOL: HealthDataUnit.COUNT,
DasesHealthDataType.BLOOD_ALCOHOL_CONTENT: HealthDataUnit.PERCENT,
DasesHealthDataType.SMOKED_CIGARETTES: HealthDataUnit.COUNT,
DasesHealthDataType.SMOKED_OTHER: HealthDataUnit.COUNT,
DasesHealthDataType.EXERCISE: HealthDataUnit.NO_UNIT,
DasesHealthDataType.SLEEP: HealthDataUnit.NO_UNIT,
};