func (b *Bundle) UnmarshalJSON(data []byte) error {
	doc := &bundleAlias{}
	if err := json.Unmarshal(data, doc); err != nil {
		return errors.Wrap(err, "failed to unmarshal Bundle")
	}
	*b = Bundle(*doc)
	return b.Validate()
}
// UnmarshalJSON fulfills the json.Unmarshaler interface for the Bundle type.
UnmarshalJSON fulfills the json.Unmarshaler interface for the Bundle type.
// UnmarshalJSON fulfills the json . Unmarshaler interface for the Bundle type .
func (b *Bundle) UnmarshalJSON(data []byte) error {
	doc := &bundleAlias{}
	if err := json.Unmarshal(data, doc); err != nil {
		return errors.Wrap(err, "failed to unmarshal Bundle")
	}
	*b = Bundle(*doc)
	return b.Validate()
}
func ( b * Bundle ) UnmarshalJSON ( data [ ] byte ) error { doc := & bundleAlias { } if err := json . Unmarshal ( data , doc ) ; err != nil { return errors . Wrap ( err , " " ) } * b = Bundle ( * doc ) return b . Validate ( ) }
UnmarshalJSON fulfills the json.Unmarshaler interface for the Bundle type.
UnmarshalJSON fulfills the json . Unmarshaler interface for the Bundle type .