def METHOD_NAME(entry: Dict[str, Any]) -> Optional[RecipeIngredient]:
    type_value = entry['ResourceItemType'].value
    type_value = type_value and type_value.value
    if not type_value:
        return None
    return RecipeIngredient(
        exact=bool(entry['bCraftingRequireExactResourceType']),
        qty=entry['BaseResourceRequirement'],
        type=str(type_value.name),
    )