getHealthDataAccessFromString function

HealthDataAccess getHealthDataAccessFromString(
  1. String? permissionType
)

Implementation

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