code: func ConvertDurationPtr(d *Duration) *time.Duration {
  	if d == nil {
  		return nil
  	}
  	res := time.Duration(*d)
  	return &res
  }
docs: // ConvertDurationPtr converts a typedefined Duration pointer to a time.Duration pointer with the same value.