func (a Document_Fields) MarshalJSON() ([]byte, error) {
	var err error
	object := make(map[string]json.RawMessage)

	for fieldName, field := range a.AdditionalProperties {
		object[fieldName], err = json.Marshal(field)
		if err != nil {
			return nil, errors.Wrap(err, fmt.Sprintf("error marshaling '%s'", fieldName))
		}
	}
	return json.Marshal(object)
}
// Override default JSON handling for Document_Fields to handle AdditionalProperties
Override default JSON handling for Document_Fields to handle AdditionalProperties
// Override default JSON handling for Document_Fields to handle AdditionalProperties
func (a Document_Fields) MarshalJSON() ([]byte, error) {
	var err error
	object := make(map[string]json.RawMessage)
	for fieldName, field := range a.AdditionalProperties {
		object[fieldName], err = json.Marshal(field)
		if err != nil {
			return nil, errors.Wrap(err, fmt.Sprintf("error marshaling '%s'", fieldName))
		}
	}
	return json.Marshal(object)
}
func ( a Document_Fields ) MarshalJSON ( ) ( [ ] byte , error ) { var err error object := make ( map [ string ] json . RawMessage ) for fieldName , field := range a . AdditionalProperties { object [ fieldName ] , err = json . Marshal ( field ) if err != nil { return nil , errors . Wrap ( err , fmt . Sprintf ( " " , fieldName ) ) } } return json . Marshal ( object ) }
Override default JSON handling for Document_Fields to handle AdditionalProperties
Override default JSON handling for Document_Fields to handle AdditionalProperties