def create_from_discriminator_value(parse_node: ParseNode) -> TargetAppsPostRequestBody:
        """
        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: TargetAppsPostRequestBody
        """
        if parse_node is None:
            raise TypeError("parse_node cannot be null.")
        return TargetAppsPostRequestBody()

        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: TargetAppsPostRequestBody
        
msgraph/generated/device_app_management/managed_app_registrations/item/intended_policies/item/target_apps/target_apps_post_request_body.py