/
model_systemconfiguration_response.go
584 lines (490 loc) · 23.3 KB
/
model_systemconfiguration_response.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
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
/*
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 SystemconfigurationResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SystemconfigurationResponse{}
// SystemconfigurationResponse A Systemconfiguration Object
type SystemconfigurationResponse struct {
// The unique ID of the Systemconfiguration
PkiSystemconfigurationID int32 `json:"pkiSystemconfigurationID"`
// The unique ID of the Systemconfigurationtype
FkiSystemconfigurationtypeID int32 `json:"fkiSystemconfigurationtypeID"`
// The description of the Systemconfigurationtype in the language of the requester
SSystemconfigurationtypeDescriptionX string `json:"sSystemconfigurationtypeDescriptionX"`
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 is Disposal processus is active or not
BSystemconfigurationIsdisposalactive *bool `json:"bSystemconfigurationIsdisposalactive,omitempty"`
// 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 _SystemconfigurationResponse SystemconfigurationResponse
// NewSystemconfigurationResponse instantiates a new SystemconfigurationResponse 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 NewSystemconfigurationResponse(pkiSystemconfigurationID int32, fkiSystemconfigurationtypeID int32, sSystemconfigurationtypeDescriptionX string, eSystemconfigurationNewexternaluseraction FieldESystemconfigurationNewexternaluseraction, eSystemconfigurationLanguage1 FieldESystemconfigurationLanguage1, eSystemconfigurationLanguage2 FieldESystemconfigurationLanguage2, bSystemconfigurationEzsignpersonnal bool, bSystemconfigurationSspr bool) *SystemconfigurationResponse {
this := SystemconfigurationResponse{}
this.PkiSystemconfigurationID = pkiSystemconfigurationID
this.FkiSystemconfigurationtypeID = fkiSystemconfigurationtypeID
this.SSystemconfigurationtypeDescriptionX = sSystemconfigurationtypeDescriptionX
this.ESystemconfigurationNewexternaluseraction = eSystemconfigurationNewexternaluseraction
this.ESystemconfigurationLanguage1 = eSystemconfigurationLanguage1
this.ESystemconfigurationLanguage2 = eSystemconfigurationLanguage2
this.BSystemconfigurationEzsignpersonnal = bSystemconfigurationEzsignpersonnal
this.BSystemconfigurationSspr = bSystemconfigurationSspr
return &this
}
// NewSystemconfigurationResponseWithDefaults instantiates a new SystemconfigurationResponse 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 NewSystemconfigurationResponseWithDefaults() *SystemconfigurationResponse {
this := SystemconfigurationResponse{}
return &this
}
// GetPkiSystemconfigurationID returns the PkiSystemconfigurationID field value
func (o *SystemconfigurationResponse) GetPkiSystemconfigurationID() int32 {
if o == nil {
var ret int32
return ret
}
return o.PkiSystemconfigurationID
}
// GetPkiSystemconfigurationIDOk returns a tuple with the PkiSystemconfigurationID field value
// and a boolean to check if the value has been set.
func (o *SystemconfigurationResponse) GetPkiSystemconfigurationIDOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.PkiSystemconfigurationID, true
}
// SetPkiSystemconfigurationID sets field value
func (o *SystemconfigurationResponse) SetPkiSystemconfigurationID(v int32) {
o.PkiSystemconfigurationID = v
}
// GetFkiSystemconfigurationtypeID returns the FkiSystemconfigurationtypeID field value
func (o *SystemconfigurationResponse) GetFkiSystemconfigurationtypeID() int32 {
if o == nil {
var ret int32
return ret
}
return o.FkiSystemconfigurationtypeID
}
// GetFkiSystemconfigurationtypeIDOk returns a tuple with the FkiSystemconfigurationtypeID field value
// and a boolean to check if the value has been set.
func (o *SystemconfigurationResponse) GetFkiSystemconfigurationtypeIDOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.FkiSystemconfigurationtypeID, true
}
// SetFkiSystemconfigurationtypeID sets field value
func (o *SystemconfigurationResponse) SetFkiSystemconfigurationtypeID(v int32) {
o.FkiSystemconfigurationtypeID = v
}
// GetSSystemconfigurationtypeDescriptionX returns the SSystemconfigurationtypeDescriptionX field value
func (o *SystemconfigurationResponse) GetSSystemconfigurationtypeDescriptionX() string {
if o == nil {
var ret string
return ret
}
return o.SSystemconfigurationtypeDescriptionX
}
// GetSSystemconfigurationtypeDescriptionXOk returns a tuple with the SSystemconfigurationtypeDescriptionX field value
// and a boolean to check if the value has been set.
func (o *SystemconfigurationResponse) GetSSystemconfigurationtypeDescriptionXOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SSystemconfigurationtypeDescriptionX, true
}
// SetSSystemconfigurationtypeDescriptionX sets field value
func (o *SystemconfigurationResponse) SetSSystemconfigurationtypeDescriptionX(v string) {
o.SSystemconfigurationtypeDescriptionX = v
}
// GetESystemconfigurationNewexternaluseraction returns the ESystemconfigurationNewexternaluseraction field value
func (o *SystemconfigurationResponse) 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 *SystemconfigurationResponse) GetESystemconfigurationNewexternaluseractionOk() (*FieldESystemconfigurationNewexternaluseraction, bool) {
if o == nil {
return nil, false
}
return &o.ESystemconfigurationNewexternaluseraction, true
}
// SetESystemconfigurationNewexternaluseraction sets field value
func (o *SystemconfigurationResponse) SetESystemconfigurationNewexternaluseraction(v FieldESystemconfigurationNewexternaluseraction) {
o.ESystemconfigurationNewexternaluseraction = v
}
// GetESystemconfigurationLanguage1 returns the ESystemconfigurationLanguage1 field value
func (o *SystemconfigurationResponse) 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 *SystemconfigurationResponse) GetESystemconfigurationLanguage1Ok() (*FieldESystemconfigurationLanguage1, bool) {
if o == nil {
return nil, false
}
return &o.ESystemconfigurationLanguage1, true
}
// SetESystemconfigurationLanguage1 sets field value
func (o *SystemconfigurationResponse) SetESystemconfigurationLanguage1(v FieldESystemconfigurationLanguage1) {
o.ESystemconfigurationLanguage1 = v
}
// GetESystemconfigurationLanguage2 returns the ESystemconfigurationLanguage2 field value
func (o *SystemconfigurationResponse) 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 *SystemconfigurationResponse) GetESystemconfigurationLanguage2Ok() (*FieldESystemconfigurationLanguage2, bool) {
if o == nil {
return nil, false
}
return &o.ESystemconfigurationLanguage2, true
}
// SetESystemconfigurationLanguage2 sets field value
func (o *SystemconfigurationResponse) SetESystemconfigurationLanguage2(v FieldESystemconfigurationLanguage2) {
o.ESystemconfigurationLanguage2 = v
}
// GetESystemconfigurationEzsign returns the ESystemconfigurationEzsign field value if set, zero value otherwise.
// Deprecated
func (o *SystemconfigurationResponse) 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 *SystemconfigurationResponse) 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 *SystemconfigurationResponse) 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 *SystemconfigurationResponse) SetESystemconfigurationEzsign(v FieldESystemconfigurationEzsign) {
o.ESystemconfigurationEzsign = &v
}
// GetESystemconfigurationEzsignofficeplan returns the ESystemconfigurationEzsignofficeplan field value if set, zero value otherwise.
func (o *SystemconfigurationResponse) 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 *SystemconfigurationResponse) 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 *SystemconfigurationResponse) 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 *SystemconfigurationResponse) SetESystemconfigurationEzsignofficeplan(v FieldESystemconfigurationEzsignofficeplan) {
o.ESystemconfigurationEzsignofficeplan = &v
}
// GetBSystemconfigurationEzsignpaidbyoffice returns the BSystemconfigurationEzsignpaidbyoffice field value if set, zero value otherwise.
func (o *SystemconfigurationResponse) 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 *SystemconfigurationResponse) 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 *SystemconfigurationResponse) 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 *SystemconfigurationResponse) SetBSystemconfigurationEzsignpaidbyoffice(v bool) {
o.BSystemconfigurationEzsignpaidbyoffice = &v
}
// GetBSystemconfigurationEzsignpersonnal returns the BSystemconfigurationEzsignpersonnal field value
func (o *SystemconfigurationResponse) 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 *SystemconfigurationResponse) GetBSystemconfigurationEzsignpersonnalOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.BSystemconfigurationEzsignpersonnal, true
}
// SetBSystemconfigurationEzsignpersonnal sets field value
func (o *SystemconfigurationResponse) SetBSystemconfigurationEzsignpersonnal(v bool) {
o.BSystemconfigurationEzsignpersonnal = v
}
// GetBSystemconfigurationIsdisposalactive returns the BSystemconfigurationIsdisposalactive field value if set, zero value otherwise.
func (o *SystemconfigurationResponse) GetBSystemconfigurationIsdisposalactive() bool {
if o == nil || IsNil(o.BSystemconfigurationIsdisposalactive) {
var ret bool
return ret
}
return *o.BSystemconfigurationIsdisposalactive
}
// GetBSystemconfigurationIsdisposalactiveOk returns a tuple with the BSystemconfigurationIsdisposalactive field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SystemconfigurationResponse) GetBSystemconfigurationIsdisposalactiveOk() (*bool, bool) {
if o == nil || IsNil(o.BSystemconfigurationIsdisposalactive) {
return nil, false
}
return o.BSystemconfigurationIsdisposalactive, true
}
// HasBSystemconfigurationIsdisposalactive returns a boolean if a field has been set.
func (o *SystemconfigurationResponse) HasBSystemconfigurationIsdisposalactive() bool {
if o != nil && !IsNil(o.BSystemconfigurationIsdisposalactive) {
return true
}
return false
}
// SetBSystemconfigurationIsdisposalactive gets a reference to the given bool and assigns it to the BSystemconfigurationIsdisposalactive field.
func (o *SystemconfigurationResponse) SetBSystemconfigurationIsdisposalactive(v bool) {
o.BSystemconfigurationIsdisposalactive = &v
}
// GetBSystemconfigurationSspr returns the BSystemconfigurationSspr field value
func (o *SystemconfigurationResponse) 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 *SystemconfigurationResponse) GetBSystemconfigurationSsprOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.BSystemconfigurationSspr, true
}
// SetBSystemconfigurationSspr sets field value
func (o *SystemconfigurationResponse) SetBSystemconfigurationSspr(v bool) {
o.BSystemconfigurationSspr = v
}
// GetDtSystemconfigurationReadonlyexpirationstart returns the DtSystemconfigurationReadonlyexpirationstart field value if set, zero value otherwise.
func (o *SystemconfigurationResponse) 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 *SystemconfigurationResponse) 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 *SystemconfigurationResponse) 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 *SystemconfigurationResponse) SetDtSystemconfigurationReadonlyexpirationstart(v string) {
o.DtSystemconfigurationReadonlyexpirationstart = &v
}
// GetDtSystemconfigurationReadonlyexpirationend returns the DtSystemconfigurationReadonlyexpirationend field value if set, zero value otherwise.
func (o *SystemconfigurationResponse) 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 *SystemconfigurationResponse) 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 *SystemconfigurationResponse) 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 *SystemconfigurationResponse) SetDtSystemconfigurationReadonlyexpirationend(v string) {
o.DtSystemconfigurationReadonlyexpirationend = &v
}
func (o SystemconfigurationResponse) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SystemconfigurationResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["pkiSystemconfigurationID"] = o.PkiSystemconfigurationID
toSerialize["fkiSystemconfigurationtypeID"] = o.FkiSystemconfigurationtypeID
toSerialize["sSystemconfigurationtypeDescriptionX"] = o.SSystemconfigurationtypeDescriptionX
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
if !IsNil(o.BSystemconfigurationIsdisposalactive) {
toSerialize["bSystemconfigurationIsdisposalactive"] = o.BSystemconfigurationIsdisposalactive
}
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 *SystemconfigurationResponse) 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{
"pkiSystemconfigurationID",
"fkiSystemconfigurationtypeID",
"sSystemconfigurationtypeDescriptionX",
"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)
}
}
varSystemconfigurationResponse := _SystemconfigurationResponse{}
decoder := json.NewDecoder(bytes.NewReader(data))
decoder.DisallowUnknownFields()
err = decoder.Decode(&varSystemconfigurationResponse)
if err != nil {
return err
}
*o = SystemconfigurationResponse(varSystemconfigurationResponse)
return err
}
type NullableSystemconfigurationResponse struct {
value *SystemconfigurationResponse
isSet bool
}
func (v NullableSystemconfigurationResponse) Get() *SystemconfigurationResponse {
return v.value
}
func (v *NullableSystemconfigurationResponse) Set(val *SystemconfigurationResponse) {
v.value = val
v.isSet = true
}
func (v NullableSystemconfigurationResponse) IsSet() bool {
return v.isSet
}
func (v *NullableSystemconfigurationResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSystemconfigurationResponse(val *SystemconfigurationResponse) *NullableSystemconfigurationResponse {
return &NullableSystemconfigurationResponse{value: val, isSet: true}
}
func (v NullableSystemconfigurationResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSystemconfigurationResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}