<gh_stars>0
import logging

from dataclasses import dataclass
from dacite import from_dict


logger = logging.getLogger()

def test_from_dict():
    @dataclass
    class InputDto():
        name: str
        age: int

    input_dto= from_dict(InputDto, {
        'name': '<NAME>',
        'age': 100,
        'job': 'Engineer'
    })

    logger.info(input_dto)

import logging

from dataclasses import dataclass
from dacite import from_dict


logger = logging.getLogger()

def test_from_dict():
    @dataclass
    class InputDto():
        name: str
        age: int

    input_dto= from_dict(InputDto, {
        'name': '<NAME>',
        'age': 100,
        'job': 'Engineer'
    })

    logger.info(input_dto)