mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
649 lines
17 KiB
Go
649 lines
17 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the EvalModelStat type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &EvalModelStat{}
|
|
|
|
// EvalModelStat struct for EvalModelStat
|
|
type EvalModelStat struct {
|
|
// tokens it answered with
|
|
CompletionTokens *int64 `json:"completionTokens,omitempty"`
|
|
// what this model cost, in cents
|
|
CostCents *int64 `json:"costCents,omitempty"`
|
|
// share of total spend, 0..100
|
|
CostPct *float64 `json:"costPct,omitempty"`
|
|
// share of its calls that failed, 0..1
|
|
ErrorRate *float64 `json:"errorRate,omitempty"`
|
|
// calls to it that did not succeed
|
|
Errors *int64 `json:"errors,omitempty"`
|
|
// the model this row is about, or \"other\" for the fold
|
|
Model *string `json:"model,omitempty"`
|
|
// >0 only on the \"other\" fold
|
|
ModelCount *int64 `json:"modelCount,omitempty"`
|
|
// median latency, null when no spans carry it
|
|
P50Ms *float64 `json:"p50Ms,omitempty"`
|
|
// 95th-percentile latency, null when unknown
|
|
P95Ms *float64 `json:"p95Ms,omitempty"`
|
|
// 99th-percentile latency, null when unknown
|
|
P99Ms *float64 `json:"p99Ms,omitempty"`
|
|
// tokens sent to it
|
|
PromptTokens *int64 `json:"promptTokens,omitempty"`
|
|
// who serves it
|
|
Provider *string `json:"provider,omitempty"`
|
|
// calls to this model in the window
|
|
Requests *int64 `json:"requests,omitempty"`
|
|
// prompt plus completion
|
|
TotalTokens *int64 `json:"totalTokens,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _EvalModelStat EvalModelStat
|
|
|
|
// NewEvalModelStat instantiates a new EvalModelStat object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewEvalModelStat() *EvalModelStat {
|
|
this := EvalModelStat{}
|
|
return &this
|
|
}
|
|
|
|
// NewEvalModelStatWithDefaults instantiates a new EvalModelStat object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewEvalModelStatWithDefaults() *EvalModelStat {
|
|
this := EvalModelStat{}
|
|
return &this
|
|
}
|
|
|
|
// GetCompletionTokens returns the CompletionTokens field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetCompletionTokens() int64 {
|
|
if o == nil || IsNil(o.CompletionTokens) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.CompletionTokens
|
|
}
|
|
|
|
// GetCompletionTokensOk returns a tuple with the CompletionTokens field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetCompletionTokensOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.CompletionTokens) {
|
|
return nil, false
|
|
}
|
|
return o.CompletionTokens, true
|
|
}
|
|
|
|
// HasCompletionTokens returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasCompletionTokens() bool {
|
|
if o != nil && !IsNil(o.CompletionTokens) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCompletionTokens gets a reference to the given int64 and assigns it to the CompletionTokens field.
|
|
func (o *EvalModelStat) SetCompletionTokens(v int64) {
|
|
o.CompletionTokens = &v
|
|
}
|
|
|
|
// GetCostCents returns the CostCents field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetCostCents() int64 {
|
|
if o == nil || IsNil(o.CostCents) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.CostCents
|
|
}
|
|
|
|
// GetCostCentsOk returns a tuple with the CostCents field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetCostCentsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.CostCents) {
|
|
return nil, false
|
|
}
|
|
return o.CostCents, true
|
|
}
|
|
|
|
// HasCostCents returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasCostCents() bool {
|
|
if o != nil && !IsNil(o.CostCents) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCostCents gets a reference to the given int64 and assigns it to the CostCents field.
|
|
func (o *EvalModelStat) SetCostCents(v int64) {
|
|
o.CostCents = &v
|
|
}
|
|
|
|
// GetCostPct returns the CostPct field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetCostPct() float64 {
|
|
if o == nil || IsNil(o.CostPct) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.CostPct
|
|
}
|
|
|
|
// GetCostPctOk returns a tuple with the CostPct field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetCostPctOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.CostPct) {
|
|
return nil, false
|
|
}
|
|
return o.CostPct, true
|
|
}
|
|
|
|
// HasCostPct returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasCostPct() bool {
|
|
if o != nil && !IsNil(o.CostPct) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCostPct gets a reference to the given float64 and assigns it to the CostPct field.
|
|
func (o *EvalModelStat) SetCostPct(v float64) {
|
|
o.CostPct = &v
|
|
}
|
|
|
|
// GetErrorRate returns the ErrorRate field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetErrorRate() float64 {
|
|
if o == nil || IsNil(o.ErrorRate) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.ErrorRate
|
|
}
|
|
|
|
// GetErrorRateOk returns a tuple with the ErrorRate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetErrorRateOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.ErrorRate) {
|
|
return nil, false
|
|
}
|
|
return o.ErrorRate, true
|
|
}
|
|
|
|
// HasErrorRate returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasErrorRate() bool {
|
|
if o != nil && !IsNil(o.ErrorRate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetErrorRate gets a reference to the given float64 and assigns it to the ErrorRate field.
|
|
func (o *EvalModelStat) SetErrorRate(v float64) {
|
|
o.ErrorRate = &v
|
|
}
|
|
|
|
// GetErrors returns the Errors field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetErrors() int64 {
|
|
if o == nil || IsNil(o.Errors) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Errors
|
|
}
|
|
|
|
// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetErrorsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Errors) {
|
|
return nil, false
|
|
}
|
|
return o.Errors, true
|
|
}
|
|
|
|
// HasErrors returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasErrors() bool {
|
|
if o != nil && !IsNil(o.Errors) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetErrors gets a reference to the given int64 and assigns it to the Errors field.
|
|
func (o *EvalModelStat) SetErrors(v int64) {
|
|
o.Errors = &v
|
|
}
|
|
|
|
// GetModel returns the Model field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetModel() string {
|
|
if o == nil || IsNil(o.Model) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Model
|
|
}
|
|
|
|
// GetModelOk returns a tuple with the Model field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetModelOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Model) {
|
|
return nil, false
|
|
}
|
|
return o.Model, true
|
|
}
|
|
|
|
// HasModel returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasModel() bool {
|
|
if o != nil && !IsNil(o.Model) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetModel gets a reference to the given string and assigns it to the Model field.
|
|
func (o *EvalModelStat) SetModel(v string) {
|
|
o.Model = &v
|
|
}
|
|
|
|
// GetModelCount returns the ModelCount field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetModelCount() int64 {
|
|
if o == nil || IsNil(o.ModelCount) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.ModelCount
|
|
}
|
|
|
|
// GetModelCountOk returns a tuple with the ModelCount field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetModelCountOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.ModelCount) {
|
|
return nil, false
|
|
}
|
|
return o.ModelCount, true
|
|
}
|
|
|
|
// HasModelCount returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasModelCount() bool {
|
|
if o != nil && !IsNil(o.ModelCount) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetModelCount gets a reference to the given int64 and assigns it to the ModelCount field.
|
|
func (o *EvalModelStat) SetModelCount(v int64) {
|
|
o.ModelCount = &v
|
|
}
|
|
|
|
// GetP50Ms returns the P50Ms field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetP50Ms() float64 {
|
|
if o == nil || IsNil(o.P50Ms) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.P50Ms
|
|
}
|
|
|
|
// GetP50MsOk returns a tuple with the P50Ms field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetP50MsOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.P50Ms) {
|
|
return nil, false
|
|
}
|
|
return o.P50Ms, true
|
|
}
|
|
|
|
// HasP50Ms returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasP50Ms() bool {
|
|
if o != nil && !IsNil(o.P50Ms) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetP50Ms gets a reference to the given float64 and assigns it to the P50Ms field.
|
|
func (o *EvalModelStat) SetP50Ms(v float64) {
|
|
o.P50Ms = &v
|
|
}
|
|
|
|
// GetP95Ms returns the P95Ms field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetP95Ms() float64 {
|
|
if o == nil || IsNil(o.P95Ms) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.P95Ms
|
|
}
|
|
|
|
// GetP95MsOk returns a tuple with the P95Ms field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetP95MsOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.P95Ms) {
|
|
return nil, false
|
|
}
|
|
return o.P95Ms, true
|
|
}
|
|
|
|
// HasP95Ms returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasP95Ms() bool {
|
|
if o != nil && !IsNil(o.P95Ms) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetP95Ms gets a reference to the given float64 and assigns it to the P95Ms field.
|
|
func (o *EvalModelStat) SetP95Ms(v float64) {
|
|
o.P95Ms = &v
|
|
}
|
|
|
|
// GetP99Ms returns the P99Ms field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetP99Ms() float64 {
|
|
if o == nil || IsNil(o.P99Ms) {
|
|
var ret float64
|
|
return ret
|
|
}
|
|
return *o.P99Ms
|
|
}
|
|
|
|
// GetP99MsOk returns a tuple with the P99Ms field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetP99MsOk() (*float64, bool) {
|
|
if o == nil || IsNil(o.P99Ms) {
|
|
return nil, false
|
|
}
|
|
return o.P99Ms, true
|
|
}
|
|
|
|
// HasP99Ms returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasP99Ms() bool {
|
|
if o != nil && !IsNil(o.P99Ms) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetP99Ms gets a reference to the given float64 and assigns it to the P99Ms field.
|
|
func (o *EvalModelStat) SetP99Ms(v float64) {
|
|
o.P99Ms = &v
|
|
}
|
|
|
|
// GetPromptTokens returns the PromptTokens field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetPromptTokens() int64 {
|
|
if o == nil || IsNil(o.PromptTokens) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.PromptTokens
|
|
}
|
|
|
|
// GetPromptTokensOk returns a tuple with the PromptTokens field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetPromptTokensOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.PromptTokens) {
|
|
return nil, false
|
|
}
|
|
return o.PromptTokens, true
|
|
}
|
|
|
|
// HasPromptTokens returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasPromptTokens() bool {
|
|
if o != nil && !IsNil(o.PromptTokens) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPromptTokens gets a reference to the given int64 and assigns it to the PromptTokens field.
|
|
func (o *EvalModelStat) SetPromptTokens(v int64) {
|
|
o.PromptTokens = &v
|
|
}
|
|
|
|
// GetProvider returns the Provider field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetProvider() string {
|
|
if o == nil || IsNil(o.Provider) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Provider
|
|
}
|
|
|
|
// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetProviderOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Provider) {
|
|
return nil, false
|
|
}
|
|
return o.Provider, true
|
|
}
|
|
|
|
// HasProvider returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasProvider() bool {
|
|
if o != nil && !IsNil(o.Provider) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProvider gets a reference to the given string and assigns it to the Provider field.
|
|
func (o *EvalModelStat) SetProvider(v string) {
|
|
o.Provider = &v
|
|
}
|
|
|
|
// GetRequests returns the Requests field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetRequests() int64 {
|
|
if o == nil || IsNil(o.Requests) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.Requests
|
|
}
|
|
|
|
// GetRequestsOk returns a tuple with the Requests field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetRequestsOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.Requests) {
|
|
return nil, false
|
|
}
|
|
return o.Requests, true
|
|
}
|
|
|
|
// HasRequests returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasRequests() bool {
|
|
if o != nil && !IsNil(o.Requests) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRequests gets a reference to the given int64 and assigns it to the Requests field.
|
|
func (o *EvalModelStat) SetRequests(v int64) {
|
|
o.Requests = &v
|
|
}
|
|
|
|
// GetTotalTokens returns the TotalTokens field value if set, zero value otherwise.
|
|
func (o *EvalModelStat) GetTotalTokens() int64 {
|
|
if o == nil || IsNil(o.TotalTokens) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.TotalTokens
|
|
}
|
|
|
|
// GetTotalTokensOk returns a tuple with the TotalTokens field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *EvalModelStat) GetTotalTokensOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.TotalTokens) {
|
|
return nil, false
|
|
}
|
|
return o.TotalTokens, true
|
|
}
|
|
|
|
// HasTotalTokens returns a boolean if a field has been set.
|
|
func (o *EvalModelStat) HasTotalTokens() bool {
|
|
if o != nil && !IsNil(o.TotalTokens) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTotalTokens gets a reference to the given int64 and assigns it to the TotalTokens field.
|
|
func (o *EvalModelStat) SetTotalTokens(v int64) {
|
|
o.TotalTokens = &v
|
|
}
|
|
|
|
func (o EvalModelStat) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o EvalModelStat) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.CompletionTokens) {
|
|
toSerialize["completionTokens"] = o.CompletionTokens
|
|
}
|
|
if !IsNil(o.CostCents) {
|
|
toSerialize["costCents"] = o.CostCents
|
|
}
|
|
if !IsNil(o.CostPct) {
|
|
toSerialize["costPct"] = o.CostPct
|
|
}
|
|
if !IsNil(o.ErrorRate) {
|
|
toSerialize["errorRate"] = o.ErrorRate
|
|
}
|
|
if !IsNil(o.Errors) {
|
|
toSerialize["errors"] = o.Errors
|
|
}
|
|
if !IsNil(o.Model) {
|
|
toSerialize["model"] = o.Model
|
|
}
|
|
if !IsNil(o.ModelCount) {
|
|
toSerialize["modelCount"] = o.ModelCount
|
|
}
|
|
if !IsNil(o.P50Ms) {
|
|
toSerialize["p50Ms"] = o.P50Ms
|
|
}
|
|
if !IsNil(o.P95Ms) {
|
|
toSerialize["p95Ms"] = o.P95Ms
|
|
}
|
|
if !IsNil(o.P99Ms) {
|
|
toSerialize["p99Ms"] = o.P99Ms
|
|
}
|
|
if !IsNil(o.PromptTokens) {
|
|
toSerialize["promptTokens"] = o.PromptTokens
|
|
}
|
|
if !IsNil(o.Provider) {
|
|
toSerialize["provider"] = o.Provider
|
|
}
|
|
if !IsNil(o.Requests) {
|
|
toSerialize["requests"] = o.Requests
|
|
}
|
|
if !IsNil(o.TotalTokens) {
|
|
toSerialize["totalTokens"] = o.TotalTokens
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *EvalModelStat) UnmarshalJSON(data []byte) (err error) {
|
|
varEvalModelStat := _EvalModelStat{}
|
|
|
|
err = json.Unmarshal(data, &varEvalModelStat)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = EvalModelStat(varEvalModelStat)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "completionTokens")
|
|
delete(additionalProperties, "costCents")
|
|
delete(additionalProperties, "costPct")
|
|
delete(additionalProperties, "errorRate")
|
|
delete(additionalProperties, "errors")
|
|
delete(additionalProperties, "model")
|
|
delete(additionalProperties, "modelCount")
|
|
delete(additionalProperties, "p50Ms")
|
|
delete(additionalProperties, "p95Ms")
|
|
delete(additionalProperties, "p99Ms")
|
|
delete(additionalProperties, "promptTokens")
|
|
delete(additionalProperties, "provider")
|
|
delete(additionalProperties, "requests")
|
|
delete(additionalProperties, "totalTokens")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableEvalModelStat struct {
|
|
value *EvalModelStat
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableEvalModelStat) Get() *EvalModelStat {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableEvalModelStat) Set(val *EvalModelStat) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableEvalModelStat) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableEvalModelStat) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableEvalModelStat(val *EvalModelStat) *NullableEvalModelStat {
|
|
return &NullableEvalModelStat{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableEvalModelStat) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableEvalModelStat) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|