@classmethod
def _from_dict(cls, _dict):
    """Initialize a FontSetting object from a json dictionary."""
    args = {}
    if 'level' in _dict:
        args['level'] = _dict.get('level')
    if 'min_size' in _dict:
        args['min_size'] = _dict.get('min_size')
    if 'max_size' in _dict:
        args['max_size'] = _dict.get('max_size')
    if 'bold' in _dict:
        args['bold'] = _dict.get('bold')
    if 'italic' in _dict:
        args['italic'] = _dict.get('italic')
    if 'name' in _dict:
        args['name'] = _dict.get('name')
    return cls(**args)
