code: func (c *CredentialV2) GetValue() *CredentialValue {
  	if c.State == "unset" { // v2 unset state
  		return nil
  	}
  	if c.Value == nil { // v2 value nilled
  		return nil
  	}
  	if c.Value.IsUnset() { // value contains v1 undefined type
  		return nil
  	}
  	return c.Value
  }
docs: // GetValue returns the value object, unless unset then returns nil