func (m *Struct) Marshal() []byte {
	writer := jspb.NewWriter()
	m.MarshalToWriter(writer)
	return writer.GetResult()
}
Marshal marshals Struct to a slice of bytes.
package structpb
import jspb "github.com/johanbrandhorst/protobuf/jspb"
const _ = jspb.JspbPackageIsVersion2
type NullValue int
const (
	NullValue_NULL_VALUE NullValue = 0
)
var NullValue_name = map[int]string{
	0: "NULL_VALUE",
}
var NullValue_value = map[string]int{
	"NULL_VALUE": 0,
}
func (x NullValue) String() string {
	return NullValue_name[int(x)]
}
type Struct struct {
	Fields map[string]*Value
}
func (m *Struct) GetFields() (x map[string]*Value) {
	if m == nil {
		return x
	}
	return m.Fields
}
func (m *Struct) MarshalToWriter(writer jspb.Writer) {
	if m == nil {
		return
	}
	if len(m.Fields) > 0 {
		for key, value := range m.Fields {
			writer.WriteMessage(1, func() {
				writer.WriteString(1, key)
				writer.WriteMessage(2, func() {
					value.MarshalToWriter(writer)
				})
			})
		}
	}
	return
}