func (a *Document_Fields) UnmarshalJSON(b []byte) error {
	object := make(map[string]json.RawMessage)
	err := json.Unmarshal(b, &object)
	if err != nil {
		return err
	}

	if len(object) != 0 {
		a.AdditionalProperties = make(map[string]Value)
		for fieldName, fieldBuf := range object {
			var fieldVal Value
			err := json.Unmarshal(fieldBuf, &fieldVal)
			if err != nil {
				return errors.Wrap(err, fmt.Sprintf("error unmarshaling field %s", fieldName))
			}
			a.AdditionalProperties[fieldName] = fieldVal
		}
	}
	return nil
}
// 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) UnmarshalJSON(b []byte) error {
	object := make(map[string]json.RawMessage)
	err := json.Unmarshal(b, &object)
	if err != nil {
		return err
	}
	if len(object) != 0 {
		a.AdditionalProperties = make(map[string]Value)
		for fieldName, fieldBuf := range object {
			var fieldVal Value
			err := json.Unmarshal(fieldBuf, &fieldVal)
			if err != nil {
				return errors.Wrap(err, fmt.Sprintf("error unmarshaling field %s", fieldName))
			}
			a.AdditionalProperties[fieldName] = fieldVal
		}
	}
	return nil
}
func ( a * Document_Fields ) UnmarshalJSON ( b [ ] byte ) error { object := make ( map [ string ] json . RawMessage ) err := json . Unmarshal ( b , & object ) if err != nil { return err } if len ( object ) != 0 { a . AdditionalProperties = make ( map [ string ] Value ) for fieldName , fieldBuf := range object { var fieldVal Value err := json . Unmarshal ( fieldBuf , & fieldVal ) if err != nil { return errors . Wrap ( err , fmt . Sprintf ( " " , fieldName ) ) } a . AdditionalProperties [ fieldName ] = fieldVal } } return nil }
Override default JSON handling for Document_Fields to handle AdditionalProperties
Override default JSON handling for Document_Fields to handle AdditionalProperties