func (w *Widget) GetType() string {
	if w == nil || w.Type == nil {
		return ""
	}
	return *w.Type
}
func (w *Widget) GetType() string {
	if w == nil || w.Type == nil {
		return ""
	}
	return *w.Type
}
func ( w * Widget ) GetType ( ) string { if w == nil || w . Type == nil { return " " } return * w . Type }
// GetType returns the Type field if non-nil, zero value otherwise.
GetType returns the Type field if non - nil zero value otherwise .