// UnmarshalJSON deserializes into a LaunchResultBase instance
508327
func (u *LaunchResultBase) UnmarshalJSON(body []byte) error {
	type wrap struct {
		dropbox.Tagged
	}
	var w wrap
	var err error
	if err = json.Unmarshal(body, &w); err != nil {
		return err
	}
	u.Tag = w.Tag
	switch u.Tag {
	case "async_job_id":
		err = json.Unmarshal(body, &u.AsyncJobId)

		if err != nil {
			return err
		}
	}
	return nil
}
1917
func (l *CodeBuildProjectEnvironmentList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := CodeBuildProjectEnvironment{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = CodeBuildProjectEnvironmentList{item}
		return nil
	}
	list := []CodeBuildProjectEnvironment{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = CodeBuildProjectEnvironmentList(list)
		return nil
	}
	return err
}
797007
func (v *JSONWriteFormat) UnmarshalJSON(data []byte) error {
	r := jlexer.Lexer{Data: data}
	easyjson72863a49DecodeGithubComSignalfxMetricproxyProtocolCollectdFormat(&r, v)
	return r.Error()
}
333075
func (v *Unsubscribed) UnmarshalJSON(data []byte) error {
	r := jlexer.Lexer{Data: data}
	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents(&r, v)
	return r.Error()
}
1320621
func (step *CallFlowPlayStep) UnmarshalJSON(data []byte) error {
	var raw jsonCallFlowPlayStep
	if err := json.Unmarshal(data, &raw); err != nil {
		return err
	}
	*step = CallFlowPlayStep{
		CallFlowStepBase: raw.CallFlowStepBase,
		Media:            raw.Options.Media,
	}
	return nil
}
135845
func (v *BodySendFormatV2) UnmarshalJSON(data []byte) error {
	r := jlexer.Lexer{Data: data}
	easyjson3b0ebf6aDecodeGithubComSignalfxGatewayProtocolSignalfxFormat7(&r, v)
	return r.Error()
}
1286385
func (i *Int64) UnmarshalJSON(data []byte) error {
	if isNull(data) {
		i.Valid = false
		return nil
	}
	if err := json.Unmarshal(data, &i.Int64); err != nil {
		return err
	}
	i.Valid = true
	return nil
}
1369520
func (n *NullString) UnmarshalJSON(b []byte) error {
	var s interface{}
	if err := json.Unmarshal(b, &s); err != nil {
		return err
	}
	return n.Scan(s)
}
1189454
func (step *CallFlowHangupStep) UnmarshalJSON(data []byte) error {
	var raw jsonCallFlowHangupStep
	if err := json.Unmarshal(data, &raw); err != nil {
		return err
	}
	*step = CallFlowHangupStep{
		CallFlowStepBase: raw.CallFlowStepBase,
	}
	return nil
}
364480
func (x *EnrollmentResponse) UnmarshalJSON(data []byte) (err error) {
	x2 := enrollmentResponse{}
	if err = json.Unmarshal(data, &x2); err == nil {
		if x2.Contained != nil {
			for i := range x2.Contained {
				x2.Contained[i] = MapToResource(x2.Contained[i], true)
			}
		}
		*x = EnrollmentResponse(x2)
		return x.checkResourceType()
	}
	return
}
1271087
func (v *RegistryMessage) UnmarshalJSON(data []byte) error {
	r := jlexer.Lexer{Data: data}
	easyjson639f989aDecodeCodeCloudfoundryOrgGorouterMbus2(&r, v)
	return r.Error()
}
842496
func (v *LargePayload) UnmarshalJSON(data []byte) error {
	r := jlexer.Lexer{Data: data}
	easyjsonCfe4e5f0DecodeGithubComFrancoispqtGojayBenchmarks(&r, v)
	return r.Error()
}
737801
func (l *EC2LaunchTemplateSpotOptionsList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := EC2LaunchTemplateSpotOptions{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = EC2LaunchTemplateSpotOptionsList{item}
		return nil
	}
	list := []EC2LaunchTemplateSpotOptions{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = EC2LaunchTemplateSpotOptionsList(list)
		return nil
	}
	return err
}
1168100
func (v *BinaryAnnotation) UnmarshalJSON(data []byte) error {
	r := jlexer.Lexer{Data: data}
	easyjson3b0ebf6aDecodeGithubComSignalfxGatewayProtocolSignalfxFormat8(&r, v)
	return r.Error()
}
1278767
func (v *Clicked) UnmarshalJSON(data []byte) error {
	r := jlexer.Lexer{Data: data}
	easyjson692db02bDecodeGithubComMailgunMailgunGoEvents16(&r, v)
	return r.Error()
}
77297
func (o *InstanceTemplate) UnmarshalJSON(data []byte) error {
	var jsonName string
	if err := json.Unmarshal(data, &jsonName); err == nil {
		o.Name = &jsonName
		return nil
	}

	var r realInstanceTemplate
	if err := json.Unmarshal(data, &r); err != nil {
		return err
	}
	*o = InstanceTemplate(r)
	return nil
}
366609
func (spaceQuota *SpaceQuota) UnmarshalJSON(data []byte) error {
	var ccSpaceQuota struct {
		Metadata internal.Metadata `json:"metadata"`
		Entity   struct {
			Name string `json:"name"`
		} `json:"entity"`
	}
	err := cloudcontroller.DecodeJSON(data, &ccSpaceQuota)
	if err != nil {
		return err
	}

	spaceQuota.GUID = ccSpaceQuota.Metadata.GUID
	spaceQuota.Name = ccSpaceQuota.Entity.Name
	return nil
}