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

        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: GetByUserIdAndRoleWithUserIdWithRoleGetResponse
        
msgraph/generated/solutions/virtual_events/townhalls/get_by_user_id_and_role_with_user_id_with_role/get_by_user_id_and_role_with_user_id_with_role_get_response.py