pub fn get_platform_from_env(env: &HashMap<String, String>) -> Result<Platform>
Gets the platform from a HashMap of environment variables.