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 ExperimentTrial type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &ExperimentTrial{}
|
|
|
|
// ExperimentTrial struct for ExperimentTrial
|
|
type ExperimentTrial struct {
|
|
// when it started assigning
|
|
CreatedAt *string `json:"createdAt,omitempty"`
|
|
// the credential that registered it
|
|
CreatedBy *string `json:"createdBy,omitempty"`
|
|
// when the promotion took effect
|
|
DecidedAt *string `json:"decidedAt,omitempty"`
|
|
// the credential that promoted the winner
|
|
DecidedBy *string `json:"decidedBy,omitempty"`
|
|
// the event that enrols a subject — the analysis denominator
|
|
ExposureEvent *string `json:"exposureEvent,omitempty"`
|
|
// the assignment flag this experiment drives
|
|
FlagKey *string `json:"flagKey,omitempty"`
|
|
// the experiment's slug, unique within the project
|
|
Id *string `json:"id,omitempty"`
|
|
// the event that counts as a conversion — the numerator
|
|
MetricEvent *string `json:"metricEvent,omitempty"`
|
|
// free text for a reader
|
|
Name *string `json:"name,omitempty"`
|
|
// the sub-scope within the org, stamped from the principal
|
|
Project *string `json:"project,omitempty"`
|
|
// running while it assigns and measures, decided once a winner is promoted
|
|
Status *string `json:"status,omitempty"`
|
|
// the unit assigned and measured: user, org, session or audience
|
|
SubjectKind *string `json:"subjectKind,omitempty"`
|
|
// the arms, weighted, one of them the control
|
|
Variants []ExperimentArm `json:"variants,omitempty"`
|
|
// the arm promoted to the whole rollout
|
|
Winner *string `json:"winner,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _ExperimentTrial ExperimentTrial
|
|
|
|
// NewExperimentTrial instantiates a new ExperimentTrial 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 NewExperimentTrial() *ExperimentTrial {
|
|
this := ExperimentTrial{}
|
|
return &this
|
|
}
|
|
|
|
// NewExperimentTrialWithDefaults instantiates a new ExperimentTrial 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 NewExperimentTrialWithDefaults() *ExperimentTrial {
|
|
this := ExperimentTrial{}
|
|
return &this
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetCreatedAt() string {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CreatedAt
|
|
}
|
|
|
|
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetCreatedAtOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedAt, true
|
|
}
|
|
|
|
// HasCreatedAt returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasCreatedAt() bool {
|
|
if o != nil && !IsNil(o.CreatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.
|
|
func (o *ExperimentTrial) SetCreatedAt(v string) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetCreatedBy() string {
|
|
if o == nil || IsNil(o.CreatedBy) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CreatedBy
|
|
}
|
|
|
|
// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetCreatedByOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CreatedBy) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedBy, true
|
|
}
|
|
|
|
// HasCreatedBy returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasCreatedBy() bool {
|
|
if o != nil && !IsNil(o.CreatedBy) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field.
|
|
func (o *ExperimentTrial) SetCreatedBy(v string) {
|
|
o.CreatedBy = &v
|
|
}
|
|
|
|
// GetDecidedAt returns the DecidedAt field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetDecidedAt() string {
|
|
if o == nil || IsNil(o.DecidedAt) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DecidedAt
|
|
}
|
|
|
|
// GetDecidedAtOk returns a tuple with the DecidedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetDecidedAtOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DecidedAt) {
|
|
return nil, false
|
|
}
|
|
return o.DecidedAt, true
|
|
}
|
|
|
|
// HasDecidedAt returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasDecidedAt() bool {
|
|
if o != nil && !IsNil(o.DecidedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDecidedAt gets a reference to the given string and assigns it to the DecidedAt field.
|
|
func (o *ExperimentTrial) SetDecidedAt(v string) {
|
|
o.DecidedAt = &v
|
|
}
|
|
|
|
// GetDecidedBy returns the DecidedBy field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetDecidedBy() string {
|
|
if o == nil || IsNil(o.DecidedBy) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DecidedBy
|
|
}
|
|
|
|
// GetDecidedByOk returns a tuple with the DecidedBy field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetDecidedByOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DecidedBy) {
|
|
return nil, false
|
|
}
|
|
return o.DecidedBy, true
|
|
}
|
|
|
|
// HasDecidedBy returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasDecidedBy() bool {
|
|
if o != nil && !IsNil(o.DecidedBy) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDecidedBy gets a reference to the given string and assigns it to the DecidedBy field.
|
|
func (o *ExperimentTrial) SetDecidedBy(v string) {
|
|
o.DecidedBy = &v
|
|
}
|
|
|
|
// GetExposureEvent returns the ExposureEvent field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetExposureEvent() string {
|
|
if o == nil || IsNil(o.ExposureEvent) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ExposureEvent
|
|
}
|
|
|
|
// GetExposureEventOk returns a tuple with the ExposureEvent field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetExposureEventOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ExposureEvent) {
|
|
return nil, false
|
|
}
|
|
return o.ExposureEvent, true
|
|
}
|
|
|
|
// HasExposureEvent returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasExposureEvent() bool {
|
|
if o != nil && !IsNil(o.ExposureEvent) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExposureEvent gets a reference to the given string and assigns it to the ExposureEvent field.
|
|
func (o *ExperimentTrial) SetExposureEvent(v string) {
|
|
o.ExposureEvent = &v
|
|
}
|
|
|
|
// GetFlagKey returns the FlagKey field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetFlagKey() string {
|
|
if o == nil || IsNil(o.FlagKey) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.FlagKey
|
|
}
|
|
|
|
// GetFlagKeyOk returns a tuple with the FlagKey field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetFlagKeyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.FlagKey) {
|
|
return nil, false
|
|
}
|
|
return o.FlagKey, true
|
|
}
|
|
|
|
// HasFlagKey returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasFlagKey() bool {
|
|
if o != nil && !IsNil(o.FlagKey) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFlagKey gets a reference to the given string and assigns it to the FlagKey field.
|
|
func (o *ExperimentTrial) SetFlagKey(v string) {
|
|
o.FlagKey = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *ExperimentTrial) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetMetricEvent returns the MetricEvent field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetMetricEvent() string {
|
|
if o == nil || IsNil(o.MetricEvent) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.MetricEvent
|
|
}
|
|
|
|
// GetMetricEventOk returns a tuple with the MetricEvent field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetMetricEventOk() (*string, bool) {
|
|
if o == nil || IsNil(o.MetricEvent) {
|
|
return nil, false
|
|
}
|
|
return o.MetricEvent, true
|
|
}
|
|
|
|
// HasMetricEvent returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasMetricEvent() bool {
|
|
if o != nil && !IsNil(o.MetricEvent) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMetricEvent gets a reference to the given string and assigns it to the MetricEvent field.
|
|
func (o *ExperimentTrial) SetMetricEvent(v string) {
|
|
o.MetricEvent = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *ExperimentTrial) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetProject returns the Project field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetProject() string {
|
|
if o == nil || IsNil(o.Project) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Project
|
|
}
|
|
|
|
// GetProjectOk returns a tuple with the Project field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetProjectOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Project) {
|
|
return nil, false
|
|
}
|
|
return o.Project, true
|
|
}
|
|
|
|
// HasProject returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasProject() bool {
|
|
if o != nil && !IsNil(o.Project) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetProject gets a reference to the given string and assigns it to the Project field.
|
|
func (o *ExperimentTrial) SetProject(v string) {
|
|
o.Project = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetStatus() string {
|
|
if o == nil || IsNil(o.Status) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Status
|
|
}
|
|
|
|
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetStatusOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Status) {
|
|
return nil, false
|
|
}
|
|
return o.Status, true
|
|
}
|
|
|
|
// HasStatus returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
|
func (o *ExperimentTrial) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
// GetSubjectKind returns the SubjectKind field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetSubjectKind() string {
|
|
if o == nil || IsNil(o.SubjectKind) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.SubjectKind
|
|
}
|
|
|
|
// GetSubjectKindOk returns a tuple with the SubjectKind field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetSubjectKindOk() (*string, bool) {
|
|
if o == nil || IsNil(o.SubjectKind) {
|
|
return nil, false
|
|
}
|
|
return o.SubjectKind, true
|
|
}
|
|
|
|
// HasSubjectKind returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasSubjectKind() bool {
|
|
if o != nil && !IsNil(o.SubjectKind) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSubjectKind gets a reference to the given string and assigns it to the SubjectKind field.
|
|
func (o *ExperimentTrial) SetSubjectKind(v string) {
|
|
o.SubjectKind = &v
|
|
}
|
|
|
|
// GetVariants returns the Variants field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetVariants() []ExperimentArm {
|
|
if o == nil || IsNil(o.Variants) {
|
|
var ret []ExperimentArm
|
|
return ret
|
|
}
|
|
return o.Variants
|
|
}
|
|
|
|
// GetVariantsOk returns a tuple with the Variants field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetVariantsOk() ([]ExperimentArm, bool) {
|
|
if o == nil || IsNil(o.Variants) {
|
|
return nil, false
|
|
}
|
|
return o.Variants, true
|
|
}
|
|
|
|
// HasVariants returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasVariants() bool {
|
|
if o != nil && !IsNil(o.Variants) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVariants gets a reference to the given []ExperimentArm and assigns it to the Variants field.
|
|
func (o *ExperimentTrial) SetVariants(v []ExperimentArm) {
|
|
o.Variants = v
|
|
}
|
|
|
|
// GetWinner returns the Winner field value if set, zero value otherwise.
|
|
func (o *ExperimentTrial) GetWinner() string {
|
|
if o == nil || IsNil(o.Winner) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Winner
|
|
}
|
|
|
|
// GetWinnerOk returns a tuple with the Winner field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *ExperimentTrial) GetWinnerOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Winner) {
|
|
return nil, false
|
|
}
|
|
return o.Winner, true
|
|
}
|
|
|
|
// HasWinner returns a boolean if a field has been set.
|
|
func (o *ExperimentTrial) HasWinner() bool {
|
|
if o != nil && !IsNil(o.Winner) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetWinner gets a reference to the given string and assigns it to the Winner field.
|
|
func (o *ExperimentTrial) SetWinner(v string) {
|
|
o.Winner = &v
|
|
}
|
|
|
|
func (o ExperimentTrial) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o ExperimentTrial) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.CreatedAt) {
|
|
toSerialize["createdAt"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.CreatedBy) {
|
|
toSerialize["createdBy"] = o.CreatedBy
|
|
}
|
|
if !IsNil(o.DecidedAt) {
|
|
toSerialize["decidedAt"] = o.DecidedAt
|
|
}
|
|
if !IsNil(o.DecidedBy) {
|
|
toSerialize["decidedBy"] = o.DecidedBy
|
|
}
|
|
if !IsNil(o.ExposureEvent) {
|
|
toSerialize["exposureEvent"] = o.ExposureEvent
|
|
}
|
|
if !IsNil(o.FlagKey) {
|
|
toSerialize["flagKey"] = o.FlagKey
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.MetricEvent) {
|
|
toSerialize["metricEvent"] = o.MetricEvent
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Project) {
|
|
toSerialize["project"] = o.Project
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if !IsNil(o.SubjectKind) {
|
|
toSerialize["subjectKind"] = o.SubjectKind
|
|
}
|
|
if !IsNil(o.Variants) {
|
|
toSerialize["variants"] = o.Variants
|
|
}
|
|
if !IsNil(o.Winner) {
|
|
toSerialize["winner"] = o.Winner
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *ExperimentTrial) UnmarshalJSON(data []byte) (err error) {
|
|
varExperimentTrial := _ExperimentTrial{}
|
|
|
|
err = json.Unmarshal(data, &varExperimentTrial)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = ExperimentTrial(varExperimentTrial)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "createdAt")
|
|
delete(additionalProperties, "createdBy")
|
|
delete(additionalProperties, "decidedAt")
|
|
delete(additionalProperties, "decidedBy")
|
|
delete(additionalProperties, "exposureEvent")
|
|
delete(additionalProperties, "flagKey")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "metricEvent")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "project")
|
|
delete(additionalProperties, "status")
|
|
delete(additionalProperties, "subjectKind")
|
|
delete(additionalProperties, "variants")
|
|
delete(additionalProperties, "winner")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableExperimentTrial struct {
|
|
value *ExperimentTrial
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableExperimentTrial) Get() *ExperimentTrial {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableExperimentTrial) Set(val *ExperimentTrial) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableExperimentTrial) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableExperimentTrial) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableExperimentTrial(val *ExperimentTrial) *NullableExperimentTrial {
|
|
return &NullableExperimentTrial{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableExperimentTrial) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableExperimentTrial) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|