-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_systemconfiguration_request_compound.go
497 lines (415 loc) · 20.3 KB
/
model_systemconfiguration_request_compound.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
/*
eZmax API Definition (Full)
This API expose all the functionnalities for the eZmax and eZsign applications.
API version: 1.2.0
Contact: support-api@ezmax.ca
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package eZmaxApi
import (
"encoding/json"
"bytes"
"fmt"
)
// checks if the SystemconfigurationRequestCompound type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SystemconfigurationRequestCompound{}
// SystemconfigurationRequestCompound A Systemconfiguration Object and children
type SystemconfigurationRequestCompound struct {
// The unique ID of the Systemconfiguration
PkiSystemconfigurationID *int32 `json:"pkiSystemconfigurationID,omitempty"`
ESystemconfigurationNewexternaluseraction FieldESystemconfigurationNewexternaluseraction `json:"eSystemconfigurationNewexternaluseraction"`
ESystemconfigurationLanguage1 FieldESystemconfigurationLanguage1 `json:"eSystemconfigurationLanguage1"`
ESystemconfigurationLanguage2 FieldESystemconfigurationLanguage2 `json:"eSystemconfigurationLanguage2"`
// Deprecated
ESystemconfigurationEzsign *FieldESystemconfigurationEzsign `json:"eSystemconfigurationEzsign,omitempty"`
ESystemconfigurationEzsignofficeplan *FieldESystemconfigurationEzsignofficeplan `json:"eSystemconfigurationEzsignofficeplan,omitempty"`
// Whether if Ezsign is paid by the company or not
BSystemconfigurationEzsignpaidbyoffice *bool `json:"bSystemconfigurationEzsignpaidbyoffice,omitempty"`
// Whether if we allow the creation of personal files in eZsign
BSystemconfigurationEzsignpersonnal bool `json:"bSystemconfigurationEzsignpersonnal"`
// Whether if we allow SSPR
BSystemconfigurationSspr bool `json:"bSystemconfigurationSspr"`
// The start date where the system will be in read only
DtSystemconfigurationReadonlyexpirationstart *string `json:"dtSystemconfigurationReadonlyexpirationstart,omitempty"`
// The end date where the system will be in read only
DtSystemconfigurationReadonlyexpirationend *string `json:"dtSystemconfigurationReadonlyexpirationend,omitempty"`
}
type _SystemconfigurationRequestCompound SystemconfigurationRequestCompound
// NewSystemconfigurationRequestCompound instantiates a new SystemconfigurationRequestCompound 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 NewSystemconfigurationRequestCompound(eSystemconfigurationNewexternaluseraction FieldESystemconfigurationNewexternaluseraction, eSystemconfigurationLanguage1 FieldESystemconfigurationLanguage1, eSystemconfigurationLanguage2 FieldESystemconfigurationLanguage2, bSystemconfigurationEzsignpersonnal bool, bSystemconfigurationSspr bool) *SystemconfigurationRequestCompound {
this := SystemconfigurationRequestCompound{}
this.ESystemconfigurationNewexternaluseraction = eSystemconfigurationNewexternaluseraction
this.ESystemconfigurationLanguage1 = eSystemconfigurationLanguage1
this.ESystemconfigurationLanguage2 = eSystemconfigurationLanguage2
this.BSystemconfigurationEzsignpersonnal = bSystemconfigurationEzsignpersonnal
this.BSystemconfigurationSspr = bSystemconfigurationSspr
return &this
}
// NewSystemconfigurationRequestCompoundWithDefaults instantiates a new SystemconfigurationRequestCompound 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 NewSystemconfigurationRequestCompoundWithDefaults() *SystemconfigurationRequestCompound {
this := SystemconfigurationRequestCompound{}
return &this
}
// GetPkiSystemconfigurationID returns the PkiSystemconfigurationID field value if set, zero value otherwise.
func (o *SystemconfigurationRequestCompound) GetPkiSystemconfigurationID() int32 {
if o == nil || IsNil(o.PkiSystemconfigurationID) {
var ret int32
return ret
}
return *o.PkiSystemconfigurationID
}
// GetPkiSystemconfigurationIDOk returns a tuple with the PkiSystemconfigurationID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SystemconfigurationRequestCompound) GetPkiSystemconfigurationIDOk() (*int32, bool) {
if o == nil || IsNil(o.PkiSystemconfigurationID) {
return nil, false
}
return o.PkiSystemconfigurationID, true
}
// HasPkiSystemconfigurationID returns a boolean if a field has been set.
func (o *SystemconfigurationRequestCompound) HasPkiSystemconfigurationID() bool {
if o != nil && !IsNil(o.PkiSystemconfigurationID) {
return true
}
return false
}
// SetPkiSystemconfigurationID gets a reference to the given int32 and assigns it to the PkiSystemconfigurationID field.
func (o *SystemconfigurationRequestCompound) SetPkiSystemconfigurationID(v int32) {
o.PkiSystemconfigurationID = &v
}
// GetESystemconfigurationNewexternaluseraction returns the ESystemconfigurationNewexternaluseraction field value
func (o *SystemconfigurationRequestCompound) GetESystemconfigurationNewexternaluseraction() FieldESystemconfigurationNewexternaluseraction {
if o == nil {
var ret FieldESystemconfigurationNewexternaluseraction
return ret
}
return o.ESystemconfigurationNewexternaluseraction
}
// GetESystemconfigurationNewexternaluseractionOk returns a tuple with the ESystemconfigurationNewexternaluseraction field value
// and a boolean to check if the value has been set.
func (o *SystemconfigurationRequestCompound) GetESystemconfigurationNewexternaluseractionOk() (*FieldESystemconfigurationNewexternaluseraction, bool) {
if o == nil {
return nil, false
}
return &o.ESystemconfigurationNewexternaluseraction, true
}
// SetESystemconfigurationNewexternaluseraction sets field value
func (o *SystemconfigurationRequestCompound) SetESystemconfigurationNewexternaluseraction(v FieldESystemconfigurationNewexternaluseraction) {
o.ESystemconfigurationNewexternaluseraction = v
}
// GetESystemconfigurationLanguage1 returns the ESystemconfigurationLanguage1 field value
func (o *SystemconfigurationRequestCompound) GetESystemconfigurationLanguage1() FieldESystemconfigurationLanguage1 {
if o == nil {
var ret FieldESystemconfigurationLanguage1
return ret
}
return o.ESystemconfigurationLanguage1
}
// GetESystemconfigurationLanguage1Ok returns a tuple with the ESystemconfigurationLanguage1 field value
// and a boolean to check if the value has been set.
func (o *SystemconfigurationRequestCompound) GetESystemconfigurationLanguage1Ok() (*FieldESystemconfigurationLanguage1, bool) {
if o == nil {
return nil, false
}
return &o.ESystemconfigurationLanguage1, true
}
// SetESystemconfigurationLanguage1 sets field value
func (o *SystemconfigurationRequestCompound) SetESystemconfigurationLanguage1(v FieldESystemconfigurationLanguage1) {
o.ESystemconfigurationLanguage1 = v
}
// GetESystemconfigurationLanguage2 returns the ESystemconfigurationLanguage2 field value
func (o *SystemconfigurationRequestCompound) GetESystemconfigurationLanguage2() FieldESystemconfigurationLanguage2 {
if o == nil {
var ret FieldESystemconfigurationLanguage2
return ret
}
return o.ESystemconfigurationLanguage2
}
// GetESystemconfigurationLanguage2Ok returns a tuple with the ESystemconfigurationLanguage2 field value
// and a boolean to check if the value has been set.
func (o *SystemconfigurationRequestCompound) GetESystemconfigurationLanguage2Ok() (*FieldESystemconfigurationLanguage2, bool) {
if o == nil {
return nil, false
}
return &o.ESystemconfigurationLanguage2, true
}
// SetESystemconfigurationLanguage2 sets field value
func (o *SystemconfigurationRequestCompound) SetESystemconfigurationLanguage2(v FieldESystemconfigurationLanguage2) {
o.ESystemconfigurationLanguage2 = v
}
// GetESystemconfigurationEzsign returns the ESystemconfigurationEzsign field value if set, zero value otherwise.
// Deprecated
func (o *SystemconfigurationRequestCompound) GetESystemconfigurationEzsign() FieldESystemconfigurationEzsign {
if o == nil || IsNil(o.ESystemconfigurationEzsign) {
var ret FieldESystemconfigurationEzsign
return ret
}
return *o.ESystemconfigurationEzsign
}
// GetESystemconfigurationEzsignOk returns a tuple with the ESystemconfigurationEzsign field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *SystemconfigurationRequestCompound) GetESystemconfigurationEzsignOk() (*FieldESystemconfigurationEzsign, bool) {
if o == nil || IsNil(o.ESystemconfigurationEzsign) {
return nil, false
}
return o.ESystemconfigurationEzsign, true
}
// HasESystemconfigurationEzsign returns a boolean if a field has been set.
func (o *SystemconfigurationRequestCompound) HasESystemconfigurationEzsign() bool {
if o != nil && !IsNil(o.ESystemconfigurationEzsign) {
return true
}
return false
}
// SetESystemconfigurationEzsign gets a reference to the given FieldESystemconfigurationEzsign and assigns it to the ESystemconfigurationEzsign field.
// Deprecated
func (o *SystemconfigurationRequestCompound) SetESystemconfigurationEzsign(v FieldESystemconfigurationEzsign) {
o.ESystemconfigurationEzsign = &v
}
// GetESystemconfigurationEzsignofficeplan returns the ESystemconfigurationEzsignofficeplan field value if set, zero value otherwise.
func (o *SystemconfigurationRequestCompound) GetESystemconfigurationEzsignofficeplan() FieldESystemconfigurationEzsignofficeplan {
if o == nil || IsNil(o.ESystemconfigurationEzsignofficeplan) {
var ret FieldESystemconfigurationEzsignofficeplan
return ret
}
return *o.ESystemconfigurationEzsignofficeplan
}
// GetESystemconfigurationEzsignofficeplanOk returns a tuple with the ESystemconfigurationEzsignofficeplan field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SystemconfigurationRequestCompound) GetESystemconfigurationEzsignofficeplanOk() (*FieldESystemconfigurationEzsignofficeplan, bool) {
if o == nil || IsNil(o.ESystemconfigurationEzsignofficeplan) {
return nil, false
}
return o.ESystemconfigurationEzsignofficeplan, true
}
// HasESystemconfigurationEzsignofficeplan returns a boolean if a field has been set.
func (o *SystemconfigurationRequestCompound) HasESystemconfigurationEzsignofficeplan() bool {
if o != nil && !IsNil(o.ESystemconfigurationEzsignofficeplan) {
return true
}
return false
}
// SetESystemconfigurationEzsignofficeplan gets a reference to the given FieldESystemconfigurationEzsignofficeplan and assigns it to the ESystemconfigurationEzsignofficeplan field.
func (o *SystemconfigurationRequestCompound) SetESystemconfigurationEzsignofficeplan(v FieldESystemconfigurationEzsignofficeplan) {
o.ESystemconfigurationEzsignofficeplan = &v
}
// GetBSystemconfigurationEzsignpaidbyoffice returns the BSystemconfigurationEzsignpaidbyoffice field value if set, zero value otherwise.
func (o *SystemconfigurationRequestCompound) GetBSystemconfigurationEzsignpaidbyoffice() bool {
if o == nil || IsNil(o.BSystemconfigurationEzsignpaidbyoffice) {
var ret bool
return ret
}
return *o.BSystemconfigurationEzsignpaidbyoffice
}
// GetBSystemconfigurationEzsignpaidbyofficeOk returns a tuple with the BSystemconfigurationEzsignpaidbyoffice field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SystemconfigurationRequestCompound) GetBSystemconfigurationEzsignpaidbyofficeOk() (*bool, bool) {
if o == nil || IsNil(o.BSystemconfigurationEzsignpaidbyoffice) {
return nil, false
}
return o.BSystemconfigurationEzsignpaidbyoffice, true
}
// HasBSystemconfigurationEzsignpaidbyoffice returns a boolean if a field has been set.
func (o *SystemconfigurationRequestCompound) HasBSystemconfigurationEzsignpaidbyoffice() bool {
if o != nil && !IsNil(o.BSystemconfigurationEzsignpaidbyoffice) {
return true
}
return false
}
// SetBSystemconfigurationEzsignpaidbyoffice gets a reference to the given bool and assigns it to the BSystemconfigurationEzsignpaidbyoffice field.
func (o *SystemconfigurationRequestCompound) SetBSystemconfigurationEzsignpaidbyoffice(v bool) {
o.BSystemconfigurationEzsignpaidbyoffice = &v
}
// GetBSystemconfigurationEzsignpersonnal returns the BSystemconfigurationEzsignpersonnal field value
func (o *SystemconfigurationRequestCompound) GetBSystemconfigurationEzsignpersonnal() bool {
if o == nil {
var ret bool
return ret
}
return o.BSystemconfigurationEzsignpersonnal
}
// GetBSystemconfigurationEzsignpersonnalOk returns a tuple with the BSystemconfigurationEzsignpersonnal field value
// and a boolean to check if the value has been set.
func (o *SystemconfigurationRequestCompound) GetBSystemconfigurationEzsignpersonnalOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.BSystemconfigurationEzsignpersonnal, true
}
// SetBSystemconfigurationEzsignpersonnal sets field value
func (o *SystemconfigurationRequestCompound) SetBSystemconfigurationEzsignpersonnal(v bool) {
o.BSystemconfigurationEzsignpersonnal = v
}
// GetBSystemconfigurationSspr returns the BSystemconfigurationSspr field value
func (o *SystemconfigurationRequestCompound) GetBSystemconfigurationSspr() bool {
if o == nil {
var ret bool
return ret
}
return o.BSystemconfigurationSspr
}
// GetBSystemconfigurationSsprOk returns a tuple with the BSystemconfigurationSspr field value
// and a boolean to check if the value has been set.
func (o *SystemconfigurationRequestCompound) GetBSystemconfigurationSsprOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.BSystemconfigurationSspr, true
}
// SetBSystemconfigurationSspr sets field value
func (o *SystemconfigurationRequestCompound) SetBSystemconfigurationSspr(v bool) {
o.BSystemconfigurationSspr = v
}
// GetDtSystemconfigurationReadonlyexpirationstart returns the DtSystemconfigurationReadonlyexpirationstart field value if set, zero value otherwise.
func (o *SystemconfigurationRequestCompound) GetDtSystemconfigurationReadonlyexpirationstart() string {
if o == nil || IsNil(o.DtSystemconfigurationReadonlyexpirationstart) {
var ret string
return ret
}
return *o.DtSystemconfigurationReadonlyexpirationstart
}
// GetDtSystemconfigurationReadonlyexpirationstartOk returns a tuple with the DtSystemconfigurationReadonlyexpirationstart field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SystemconfigurationRequestCompound) GetDtSystemconfigurationReadonlyexpirationstartOk() (*string, bool) {
if o == nil || IsNil(o.DtSystemconfigurationReadonlyexpirationstart) {
return nil, false
}
return o.DtSystemconfigurationReadonlyexpirationstart, true
}
// HasDtSystemconfigurationReadonlyexpirationstart returns a boolean if a field has been set.
func (o *SystemconfigurationRequestCompound) HasDtSystemconfigurationReadonlyexpirationstart() bool {
if o != nil && !IsNil(o.DtSystemconfigurationReadonlyexpirationstart) {
return true
}
return false
}
// SetDtSystemconfigurationReadonlyexpirationstart gets a reference to the given string and assigns it to the DtSystemconfigurationReadonlyexpirationstart field.
func (o *SystemconfigurationRequestCompound) SetDtSystemconfigurationReadonlyexpirationstart(v string) {
o.DtSystemconfigurationReadonlyexpirationstart = &v
}
// GetDtSystemconfigurationReadonlyexpirationend returns the DtSystemconfigurationReadonlyexpirationend field value if set, zero value otherwise.
func (o *SystemconfigurationRequestCompound) GetDtSystemconfigurationReadonlyexpirationend() string {
if o == nil || IsNil(o.DtSystemconfigurationReadonlyexpirationend) {
var ret string
return ret
}
return *o.DtSystemconfigurationReadonlyexpirationend
}
// GetDtSystemconfigurationReadonlyexpirationendOk returns a tuple with the DtSystemconfigurationReadonlyexpirationend field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SystemconfigurationRequestCompound) GetDtSystemconfigurationReadonlyexpirationendOk() (*string, bool) {
if o == nil || IsNil(o.DtSystemconfigurationReadonlyexpirationend) {
return nil, false
}
return o.DtSystemconfigurationReadonlyexpirationend, true
}
// HasDtSystemconfigurationReadonlyexpirationend returns a boolean if a field has been set.
func (o *SystemconfigurationRequestCompound) HasDtSystemconfigurationReadonlyexpirationend() bool {
if o != nil && !IsNil(o.DtSystemconfigurationReadonlyexpirationend) {
return true
}
return false
}
// SetDtSystemconfigurationReadonlyexpirationend gets a reference to the given string and assigns it to the DtSystemconfigurationReadonlyexpirationend field.
func (o *SystemconfigurationRequestCompound) SetDtSystemconfigurationReadonlyexpirationend(v string) {
o.DtSystemconfigurationReadonlyexpirationend = &v
}
func (o SystemconfigurationRequestCompound) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SystemconfigurationRequestCompound) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.PkiSystemconfigurationID) {
toSerialize["pkiSystemconfigurationID"] = o.PkiSystemconfigurationID
}
toSerialize["eSystemconfigurationNewexternaluseraction"] = o.ESystemconfigurationNewexternaluseraction
toSerialize["eSystemconfigurationLanguage1"] = o.ESystemconfigurationLanguage1
toSerialize["eSystemconfigurationLanguage2"] = o.ESystemconfigurationLanguage2
if !IsNil(o.ESystemconfigurationEzsign) {
toSerialize["eSystemconfigurationEzsign"] = o.ESystemconfigurationEzsign
}
if !IsNil(o.ESystemconfigurationEzsignofficeplan) {
toSerialize["eSystemconfigurationEzsignofficeplan"] = o.ESystemconfigurationEzsignofficeplan
}
if !IsNil(o.BSystemconfigurationEzsignpaidbyoffice) {
toSerialize["bSystemconfigurationEzsignpaidbyoffice"] = o.BSystemconfigurationEzsignpaidbyoffice
}
toSerialize["bSystemconfigurationEzsignpersonnal"] = o.BSystemconfigurationEzsignpersonnal
toSerialize["bSystemconfigurationSspr"] = o.BSystemconfigurationSspr
if !IsNil(o.DtSystemconfigurationReadonlyexpirationstart) {
toSerialize["dtSystemconfigurationReadonlyexpirationstart"] = o.DtSystemconfigurationReadonlyexpirationstart
}
if !IsNil(o.DtSystemconfigurationReadonlyexpirationend) {
toSerialize["dtSystemconfigurationReadonlyexpirationend"] = o.DtSystemconfigurationReadonlyexpirationend
}
return toSerialize, nil
}
func (o *SystemconfigurationRequestCompound) UnmarshalJSON(data []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"eSystemconfigurationNewexternaluseraction",
"eSystemconfigurationLanguage1",
"eSystemconfigurationLanguage2",
"bSystemconfigurationEzsignpersonnal",
"bSystemconfigurationSspr",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err;
}
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varSystemconfigurationRequestCompound := _SystemconfigurationRequestCompound{}
decoder := json.NewDecoder(bytes.NewReader(data))
decoder.DisallowUnknownFields()
err = decoder.Decode(&varSystemconfigurationRequestCompound)
if err != nil {
return err
}
*o = SystemconfigurationRequestCompound(varSystemconfigurationRequestCompound)
return err
}
type NullableSystemconfigurationRequestCompound struct {
value *SystemconfigurationRequestCompound
isSet bool
}
func (v NullableSystemconfigurationRequestCompound) Get() *SystemconfigurationRequestCompound {
return v.value
}
func (v *NullableSystemconfigurationRequestCompound) Set(val *SystemconfigurationRequestCompound) {
v.value = val
v.isSet = true
}
func (v NullableSystemconfigurationRequestCompound) IsSet() bool {
return v.isSet
}
func (v *NullableSystemconfigurationRequestCompound) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSystemconfigurationRequestCompound(val *SystemconfigurationRequestCompound) *NullableSystemconfigurationRequestCompound {
return &NullableSystemconfigurationRequestCompound{value: val, isSet: true}
}
func (v NullableSystemconfigurationRequestCompound) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSystemconfigurationRequestCompound) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}