func (t Time) AsQueryParameter() string {
	return t.Time.Format(time.RFC3339Nano)
}
AsQueryParameter formats time value for query parameter usage.
package azuredevops
import (
	"encoding/json"
	"strconv"
	"strings"
	"time"
	"github.com/google/uuid"
)
type ApiResourceLocation struct {
	Area *string `json:"area,omitempty"`
	Id *uuid.UUID `json:"id,omitempty"`
	MaxVersion *string `json:"maxVersion,omitempty"`
	MinVersion *string `json:"minVersion,omitempty"`
	ReleasedVersion *string `json:"releasedVersion,omitempty"`
	ResourceName *string `json:"resourceName,omitempty"`
	ResourceVersion *int `json:"resourceVersion,omitempty"`
	RouteTemplate *string `json:"routeTemplate,omitempty"`
}
type WrappedImproperError struct {
	Count *int           `json:"count,omitempty"`
	Value *ImproperError `json:"value,omitempty"`
}
type ImproperError struct {
	Message *string `json:"Message,omitempty"`
}
type KeyValuePair struct {
	Key   *interface{} `json:"key,omitempty"`
	Value *interface{} `json:"value,omitempty"`
}
type ResourceAreaInfo struct {
	Id          *uuid.UUID `json:"id,omitempty"`
	LocationUrl *string    `json:"locationUrl,omitempty"`
	Name        *string    `json:"name,omitempty"`
}
type Time struct {
	Time time.Time
}
func (t *Time) UnmarshalJSON(b []byte) error {
	t2 := time.Time{}
	err := json.Unmarshal(b, &t2)
	if err != nil {
		parseError, ok := err.(*time.ParseError)
		if ok {
			if parseError.Value == "\"0001-01-01T00:00:00\"" {
				err = nil
			} else {
				var innerError error
				t2, innerError = time.Parse("2006-01-02T15:04:05.999999999", strings.Trim(parseError.Value, "\""))
				if innerError == nil {
					err = nil
				}
			}
		}
	}
	t.Time = t2
	return err
}
func (t *Time) MarshalJSON() ([]byte, error) {
	return json.Marshal(t.Time)
}