func (p PacketType) HasData() bool {
	switch p {
	case PushData, PullResp, TxAck:
		return true
	}
	return false
}
HasData returns true iff a packet of this type has a Data field
package udp
import (
	"encoding/json"
	"io"
	"net"
	"time"
	"go.thethings.network/lorawan-stack/v3/pkg/errors"
	"go.thethings.network/lorawan-stack/v3/pkg/types"
)
type ProtocolVersion uint8
const (
	Version1 ProtocolVersion = 0x01
	Version2 ProtocolVersion = 0x02
)
type PacketType uint8
const (
	PushData PacketType = iota
	PushAck
	PullData
	PullResp
	PullAck
	TxAck
)
func (p PacketType) HasGatewayEUI() bool {
	switch p {
	case PushData, PullData, TxAck:
		return true
	}
	return false
}