def create_from_discriminator_value(parse_node: ParseNode) -> FilePlanDescriptorBase:
        """
        Creates a new instance of the appropriate class based on discriminator value
        param parse_node: The parse node to use to read the discriminator value and create the object
        Returns: FilePlanDescriptorBase
        """
        if parse_node is None:
            raise TypeError("parse_node cannot be null.")
        try:
            child_node = parse_node.get_child_node("@odata.type")
            mapping_value = child_node.get_str_value() if child_node else None
        except AttributeError:
            mapping_value = None
        if mapping_value and mapping_value.casefold() == "#microsoft.graph.security.filePlanAppliedCategory".casefold():
            from .file_plan_applied_category import FilePlanAppliedCategory

            return FilePlanAppliedCategory()
        if mapping_value and mapping_value.casefold() == "#microsoft.graph.security.filePlanAuthority".casefold():
            from .file_plan_authority import FilePlanAuthority

            return FilePlanAuthority()
        if mapping_value and mapping_value.casefold() == "#microsoft.graph.security.filePlanCitation".casefold():
            from .file_plan_citation import FilePlanCitation

            return FilePlanCitation()
        if mapping_value and mapping_value.casefold() == "#microsoft.graph.security.filePlanDepartment".casefold():
            from .file_plan_department import FilePlanDepartment

            return FilePlanDepartment()
        if mapping_value and mapping_value.casefold() == "#microsoft.graph.security.filePlanReference".casefold():
            from .file_plan_reference import FilePlanReference

            return FilePlanReference()
        if mapping_value and mapping_value.casefold() == "#microsoft.graph.security.filePlanSubcategory".casefold():
            from .file_plan_subcategory import FilePlanSubcategory

            return FilePlanSubcategory()
        return FilePlanDescriptorBase()

        Creates a new instance of the appropriate class based on discriminator value
        param parse_node: The parse node to use to read the discriminator value and create the object
        Returns: FilePlanDescriptorBase
        
msgraph/generated/models/security/file_plan_descriptor_base.py