"""Business logic example."""
from typing import Any, Dict

from dto.github_user_info_dto import GitHubUserInfoDto


class GitHubUserInfoExtractor:
    """Business logic class."""

    def __init__(self) -> None:
        """Initialize a new instance of GitHubUserInfoExtractor class."""
        pass

    def extract_user_info(self, json: Dict[str, Any]) -> GitHubUserInfoDto:
        """Convert json data to GitHubUserInfoDto.

        Args:
            json (Dict[str, Any]): _description_

        Returns:
            GitHubUserInfoDto: _description_
        """
        dto = GitHubUserInfoDto.from_dict(json)
        return dto

"""Business logic example."""
from typing import Any, Dict

from dto.github_user_info_dto import GitHubUserInfoDto


class GitHubUserInfoExtractor:
    """Business logic class."""

    def __init__(self) -> None:
        """Initialize a new instance of GitHubUserInfoExtractor class."""
        pass

    def extract_user_info(self, json: Dict[str, Any]) -> GitHubUserInfoDto:
        """Convert json data to GitHubUserInfoDto.

        Args:
            json (Dict[str, Any]): _description_

        Returns:
            GitHubUserInfoDto: _description_
        """
        dto = GitHubUserInfoDto.from_dict(json)
        return dto

Business logic example. Business logic class. Initialize a new instance of GitHubUserInfoExtractor class. Convert json data to GitHubUserInfoDto.          Args:             json (Dict[str, Any]): _description_          Returns:             GitHubUserInfoDto: _description_