def METHOD_NAME(config: Dict[str, str]) -> 'DeployConfig':
    if 'domain' not in config:
        config['domain'] = 'hail.is'
    return DeployConfig(
        env_var_or_default('location', config),
        env_var_or_default('default_namespace', config),
        env_var_or_default('domain', config)
    )