Check the given model of country and its methods:
/**
*
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
* @param \Magento\Directory\Model\CountryFactory $countryFactory
*/
public function __construct(
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
\Magento\Directory\Model\CountryFactory $countryFactory
) {
$this->scopeConfig = $scopeConfig;
$this->countryFactory = $countryFactory;
}
One of the method it provides is $this->countryFactory->create()->getName();$this->countryFactory->create()->getName();
.You can use the model factory based on your requirements.