func (msg *Vector2) MarshalJSON() ([]byte, error) {
	var buf bytes.Buffer
	err := (&jsonpb.Marshaler{
		EnumsAsInts:  false,
		EmitDefaults: false,
		OrigName:     false,
	}).Marshal(&buf, msg)
	return buf.Bytes(), err
}
MarshalJSON implements json.Marshaler
package engine
import (
	"bytes"
	"github.com/golang/protobuf/jsonpb"
)