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

        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: AssignUserToDevicePostRequestBody
        
msgraph/generated/device_management/windows_autopilot_device_identities/item/assign_user_to_device/assign_user_to_device_post_request_body.py