factory dandy.intel.factory IntelFactory intel_to_json_inc_ex_schema classmethod Source code in dandy/intel/factory.py 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43@classmethod def intel_to_json_inc_ex_schema( cls, intel: Union[BaseIntel, Type[BaseIntel]], include: Union[IncEx, None] = None, exclude: Union[IncEx, None] = None, ) -> Dict: inc_ex_kwargs = {'include': include, 'exclude': exclude} return cls._run_for_intel_class_or_object( intel=intel, class_func=intel.model_json_inc_ex_schema, object_func=intel.model_object_json_inc_ex_schema, **inc_ex_kwargs ) json_to_intel_object classmethod Source code in dandy/intel/factory.py 45 46 47 48 49 50 51 52 53 54 55 56 57@classmethod def json_to_intel_object( cls, json: str, intel: Union[BaseIntel, Type[BaseIntel]] ) -> BaseIntel: return cls._run_for_intel_class_or_object( intel=intel, class_func=intel.model_validate_json, object_func=intel.model_validate_json_and_copy, json_data=json )