code: func (self *UnionTypeDef) Init() *UnionTypeDef {
  	if self.Variants == nil {
  		self.Variants = make([]TypeRef, 0)
  	}
  	return self
  }
docs: //
  // Init - sets up the instance according to its default field values, if any
  //