code: func (p *Period) GetUnitOk() (string, bool) {
  	if p == nil || p.Unit == nil {
  		return "", false
  	}
  	return *p.Unit, true
  }
docs: // GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise
  // and a boolean to check if the value has been set.