// UnmarshalJSON will override the unmarshal
// process of ValueWrapper and store the correct
// Value into the variables within the struct.
UnmarshalJSON will override the unmarshal
process of ValueWrapper and store the correct
Value into the variables within the struct.
// UnmarshalJSON will override the unmarshal // process of ValueWrapper and store the correct // Value into the variables within the struct .
func (w *ValueWrapper) UnmarshalJSON(data []byte) error {
	if err := json.Unmarshal(data, &w.PropertyDetailedValue); err == nil {
		return nil
	}
	w.Partial = true
	return json.Unmarshal(data, &w.Value)
}
func ( w * ValueWrapper ) UnmarshalJSON ( data [ ] byte ) error { if err := json . Unmarshal ( data , & w . PropertyDetailedValue ) ; err == nil { return nil } w . Partial = true return json . Unmarshal ( data , & w . Value ) }
UnmarshalJSON will override the unmarshal
process of ValueWrapper and store the correct
Value into the variables within the struct.
UnmarshalJSON will override the unmarshal process of ValueWrapper and store the correct Value into the variables within the struct .