func (r RespUserInteractive) HasSingleStageFlow(stageName string) bool {
	for _, f := range r.Flows {
		if len(f.Stages) == 1 && f.Stages[0] == stageName {
			return true
		}
	}
	return false
}
HasSingleStageFlow returns true if there exists at least 1 Flow with a single stage of stageName.
package gomatrix
type RespError struct {
	ErrCode string `json:"errcode"`
	Err     string `json:"error"`
}
func (e RespError) Error() string {
	return e.ErrCode + ": " + e.Err
}
type RespCreateFilter struct {
	FilterID string `json:"filter_id"`
}
type RespVersions struct {
	Versions []string `json:"versions"`
}
type RespJoinRoom struct {
	RoomID string `json:"room_id"`
}
type RespLeaveRoom struct{}
type RespForgetRoom struct{}
type RespInviteUser struct{}
type RespKickUser struct{}
type RespBanUser struct{}
type RespUnbanUser struct{}
type RespTyping struct{}
type RespJoinedRooms struct {
	JoinedRooms []string `json:"joined_rooms"`
}
type RespJoinedMembers struct {
	Joined map[string]struct {
		DisplayName *string `json:"display_name"`
		AvatarURL   *string `json:"avatar_url"`
	} `json:"joined"`
}
type RespMessages struct {
	Start string  `json:"start"`
	Chunk []Event `json:"chunk"`
	End   string  `json:"end"`
}
type RespSendEvent struct {
	EventID string `json:"event_id"`
}
type RespMediaUpload struct {
	ContentURI string `json:"content_uri"`
}
type RespUserInteractive struct {
	Flows []struct {
		Stages []string `json:"stages"`
	} `json:"flows"`
	Params    map[string]interface{} `json:"params"`
	Session   string                 `json:"session"`
	Completed []string               `json:"completed"`
	ErrCode   string                 `json:"errcode"`
	Error     string                 `json:"error"`
}