getHealthDataAccessFromString function
Implementation
HealthDataAccess getHealthDataAccessFromString(String? permissionType) {
switch (permissionType) {
case 'write':
return HealthDataAccess.WRITE;
case 'read_write':
return HealthDataAccess.READ_WRITE;
default:
return HealthDataAccess.READ;
}
}