// MarshalJSON method of BoxComponent
7587
func (c *BoxComponent) MarshalJSON() ([]byte, error) {
	return json.Marshal(&struct {
		Type     FlexComponentType        `json:"type"`
		Layout   FlexBoxLayoutType        `json:"layout"`
		Contents []FlexComponent          `json:"contents"`
		Flex     *int                     `json:"flex,omitempty"`
		Spacing  FlexComponentSpacingType `json:"spacing,omitempty"`
		Margin   FlexComponentMarginType  `json:"margin,omitempty"`
	}{
		Type:     FlexComponentTypeBox,
		Layout:   c.Layout,
		Contents: c.Contents,
		Flex:     c.Flex,
		Spacing:  c.Spacing,
		Margin:   c.Margin,
	})
}
1197823
func (dt *DateTimeRFC2616) MarshalJSON() ([]byte, error) {
	return []byte(time.Time(*dt).Format(dateTimeRFC2616FmtTicked)), nil
}
664212
func (t *Type) MarshalJSON() ([]byte, error) {
	var aux string

	switch *t {
	case RoundRobin:
		aux = roundRobinName
	}

	b, err := json.Marshal(aux)
	if err != nil {
		return nil, err
	}

	return b, nil
}
600420
func (c *IconComponent) MarshalJSON() ([]byte, error) {
	return json.Marshal(&struct {
		Type        FlexComponentType       `json:"type"`
		URL         string                  `json:"url"`
		Margin      FlexComponentMarginType `json:"margin,omitempty"`
		Size        FlexIconSizeType        `json:"size,omitempty"`
		AspectRatio FlexIconAspectRatioType `json:"aspectRatio,omitempty"`
	}{
		Type:        FlexComponentTypeIcon,
		URL:         c.URL,
		Margin:      c.Margin,
		Size:        c.Size,
		AspectRatio: c.AspectRatio,
	})
}
137633
func (t ts) MarshalJSON() ([]byte, error) {
	stringTime := t.Format(time.ANSIC)
	return json.Marshal(stringTime)
}
306401
func (that *JSONNode) MarshalJSON() ([]byte, error) {
	var ret []byte
	var err error
	switch that.t {
	case TypeMap:
		ret, err = json.Marshal(that.m)
	case TypeArray:
		ret, err = json.Marshal(that.a)
	case TypeValue:
		ret, err = json.Marshal(that.v)
	default:
		ret, err = json.Marshal(nil)
	}
	if err != nil {
		return nil, err
	}
	return ret, err
}
544058
func (bj BinaryJSON) MarshalJSON() ([]byte, error) {
	buf := make([]byte, 0, len(bj.Value)*3/2)
	return bj.marshalTo(buf)
}
235281
func (v bulkIndexRequestCommandOp) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	easyjson9de0fcbfEncodeGithubComOlivereElastic(&w, v)
	return w.Buffer.BuildBytes(), w.Error
}
395493
func (v Subscriber) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	easyjson639f989aEncodeCodeCloudfoundryOrgGorouterMbus1(&w, v)
	return w.Buffer.BuildBytes(), w.Error
}
1012776
func (f JoinFunc) MarshalJSON() ([]byte, error) {
	return json.Marshal(struct {
		FnJoin []interface{} `json:"Fn::Join"`
	}{FnJoin: []interface{}{f.Separator, f.Items}})
}
115194
func (sa *StringArray) MarshalJSON() ([]byte, error) {
	if sa == nil || !sa.Valid {
		return []byte("null"), nil
	}

	return json.Marshal(sa.StringArray)
}
865624
func (v Generic) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents11(&w, v)
	return w.Buffer.BuildBytes(), w.Error
}
14221
func (sf *ScalarFunction) MarshalJSON() ([]byte, error) {
	buffer := bytes.NewBufferString(fmt.Sprintf("\"%s\"", sf))
	return buffer.Bytes(), nil
}
186371
func (l ContainerChildList) MarshalJSON() ([]byte, error) {
	containers := struct {
		Children []*ContainerChild `json:"children,omitempty"`
	}{l}
	return json.Marshal(containers)
}
679537
func (v InputAnnotation) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	easyjson3b0ebf6aEncodeGithubComSignalfxGatewayProtocolSignalfxFormat5(&w, v)
	return w.Buffer.BuildBytes(), w.Error
}
366089
func (v InputSpanList) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	easyjson3b0ebf6aEncodeGithubComSignalfxGatewayProtocolSignalfxFormat3(&w, v)
	return w.Buffer.BuildBytes(), w.Error
}
957573
func (t T) MarshalJSON() ([]byte, error) {
	params := map[string]interface{}{
		"from": t.From,
	}
	if t.To != "" {
		params["to"] = t.To
	}
	if t.Gas > 0 {
		params["gas"] = IntToHex(t.Gas)
	}
	if t.GasPrice != nil {
		params["gasPrice"] = BigToHex(*t.GasPrice)
	}
	if t.Value != nil {
		params["value"] = BigToHex(*t.Value)
	}
	if t.Data != "" {
		params["data"] = t.Data
	}
	if t.Nonce > 0 {
		params["nonce"] = IntToHex(t.Nonce)
	}

	return json.Marshal(params)
}