code: func (self *ResourceOutput) UnmarshalJSON(b []byte) error {
  	var m rawResourceOutput
  	err := json.Unmarshal(b, &m)
  	if err == nil {
  		o := ResourceOutput(m)
  		*self = o
  		err = self.Validate()
  	}
  	return err
  }
docs: //
  // UnmarshalJSON is defined for proper JSON decoding of a ResourceOutput
  //