-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_product.go
766 lines (650 loc) · 20.6 KB
/
model_product.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
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
/*
Identity Security Cloud Beta API
Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. These APIs are in beta and are subject to change. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
API version: 3.1.0-beta
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api_beta
import (
"encoding/json"
)
// checks if the Product type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Product{}
// Product struct for Product
type Product struct {
// Name of the Product
ProductName *string `json:"productName,omitempty"`
// URL of the Product
Url *string `json:"url,omitempty"`
// An identifier for a specific product-tenant combination
ProductTenantId *string `json:"productTenantId,omitempty"`
// Product region
ProductRegion *string `json:"productRegion,omitempty"`
// Right needed for the Product
ProductRight *string `json:"productRight,omitempty"`
// API URL of the Product
ApiUrl NullableString `json:"apiUrl,omitempty"`
Licenses []License `json:"licenses,omitempty"`
// Additional attributes for a product
Attributes map[string]interface{} `json:"attributes,omitempty"`
// Zone
Zone *string `json:"zone,omitempty"`
// Status of the product
Status *string `json:"status,omitempty"`
// Status datetime
StatusDateTime *SailPointTime `json:"statusDateTime,omitempty"`
// If there's a tenant provisioning failure then reason will have the description of error
Reason *string `json:"reason,omitempty"`
// Product could have additional notes added during tenant provisioning.
Notes *string `json:"notes,omitempty"`
// Date when the product was created
DateCreated NullableTime `json:"dateCreated,omitempty"`
// Date when the product was last updated
LastUpdated NullableTime `json:"lastUpdated,omitempty"`
// Type of org
OrgType NullableString `json:"orgType,omitempty"`
AdditionalProperties map[string]interface{}
}
type _Product Product
// NewProduct instantiates a new Product 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 NewProduct() *Product {
this := Product{}
return &this
}
// NewProductWithDefaults instantiates a new Product 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 NewProductWithDefaults() *Product {
this := Product{}
return &this
}
// GetProductName returns the ProductName field value if set, zero value otherwise.
func (o *Product) GetProductName() string {
if o == nil || IsNil(o.ProductName) {
var ret string
return ret
}
return *o.ProductName
}
// GetProductNameOk returns a tuple with the ProductName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Product) GetProductNameOk() (*string, bool) {
if o == nil || IsNil(o.ProductName) {
return nil, false
}
return o.ProductName, true
}
// HasProductName returns a boolean if a field has been set.
func (o *Product) HasProductName() bool {
if o != nil && !IsNil(o.ProductName) {
return true
}
return false
}
// SetProductName gets a reference to the given string and assigns it to the ProductName field.
func (o *Product) SetProductName(v string) {
o.ProductName = &v
}
// GetUrl returns the Url field value if set, zero value otherwise.
func (o *Product) GetUrl() string {
if o == nil || IsNil(o.Url) {
var ret string
return ret
}
return *o.Url
}
// GetUrlOk returns a tuple with the Url field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Product) GetUrlOk() (*string, bool) {
if o == nil || IsNil(o.Url) {
return nil, false
}
return o.Url, true
}
// HasUrl returns a boolean if a field has been set.
func (o *Product) HasUrl() bool {
if o != nil && !IsNil(o.Url) {
return true
}
return false
}
// SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *Product) SetUrl(v string) {
o.Url = &v
}
// GetProductTenantId returns the ProductTenantId field value if set, zero value otherwise.
func (o *Product) GetProductTenantId() string {
if o == nil || IsNil(o.ProductTenantId) {
var ret string
return ret
}
return *o.ProductTenantId
}
// GetProductTenantIdOk returns a tuple with the ProductTenantId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Product) GetProductTenantIdOk() (*string, bool) {
if o == nil || IsNil(o.ProductTenantId) {
return nil, false
}
return o.ProductTenantId, true
}
// HasProductTenantId returns a boolean if a field has been set.
func (o *Product) HasProductTenantId() bool {
if o != nil && !IsNil(o.ProductTenantId) {
return true
}
return false
}
// SetProductTenantId gets a reference to the given string and assigns it to the ProductTenantId field.
func (o *Product) SetProductTenantId(v string) {
o.ProductTenantId = &v
}
// GetProductRegion returns the ProductRegion field value if set, zero value otherwise.
func (o *Product) GetProductRegion() string {
if o == nil || IsNil(o.ProductRegion) {
var ret string
return ret
}
return *o.ProductRegion
}
// GetProductRegionOk returns a tuple with the ProductRegion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Product) GetProductRegionOk() (*string, bool) {
if o == nil || IsNil(o.ProductRegion) {
return nil, false
}
return o.ProductRegion, true
}
// HasProductRegion returns a boolean if a field has been set.
func (o *Product) HasProductRegion() bool {
if o != nil && !IsNil(o.ProductRegion) {
return true
}
return false
}
// SetProductRegion gets a reference to the given string and assigns it to the ProductRegion field.
func (o *Product) SetProductRegion(v string) {
o.ProductRegion = &v
}
// GetProductRight returns the ProductRight field value if set, zero value otherwise.
func (o *Product) GetProductRight() string {
if o == nil || IsNil(o.ProductRight) {
var ret string
return ret
}
return *o.ProductRight
}
// GetProductRightOk returns a tuple with the ProductRight field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Product) GetProductRightOk() (*string, bool) {
if o == nil || IsNil(o.ProductRight) {
return nil, false
}
return o.ProductRight, true
}
// HasProductRight returns a boolean if a field has been set.
func (o *Product) HasProductRight() bool {
if o != nil && !IsNil(o.ProductRight) {
return true
}
return false
}
// SetProductRight gets a reference to the given string and assigns it to the ProductRight field.
func (o *Product) SetProductRight(v string) {
o.ProductRight = &v
}
// GetApiUrl returns the ApiUrl field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Product) GetApiUrl() string {
if o == nil || IsNil(o.ApiUrl.Get()) {
var ret string
return ret
}
return *o.ApiUrl.Get()
}
// GetApiUrlOk returns a tuple with the ApiUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Product) GetApiUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ApiUrl.Get(), o.ApiUrl.IsSet()
}
// HasApiUrl returns a boolean if a field has been set.
func (o *Product) HasApiUrl() bool {
if o != nil && o.ApiUrl.IsSet() {
return true
}
return false
}
// SetApiUrl gets a reference to the given NullableString and assigns it to the ApiUrl field.
func (o *Product) SetApiUrl(v string) {
o.ApiUrl.Set(&v)
}
// SetApiUrlNil sets the value for ApiUrl to be an explicit nil
func (o *Product) SetApiUrlNil() {
o.ApiUrl.Set(nil)
}
// UnsetApiUrl ensures that no value is present for ApiUrl, not even an explicit nil
func (o *Product) UnsetApiUrl() {
o.ApiUrl.Unset()
}
// GetLicenses returns the Licenses field value if set, zero value otherwise.
func (o *Product) GetLicenses() []License {
if o == nil || IsNil(o.Licenses) {
var ret []License
return ret
}
return o.Licenses
}
// GetLicensesOk returns a tuple with the Licenses field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Product) GetLicensesOk() ([]License, bool) {
if o == nil || IsNil(o.Licenses) {
return nil, false
}
return o.Licenses, true
}
// HasLicenses returns a boolean if a field has been set.
func (o *Product) HasLicenses() bool {
if o != nil && !IsNil(o.Licenses) {
return true
}
return false
}
// SetLicenses gets a reference to the given []License and assigns it to the Licenses field.
func (o *Product) SetLicenses(v []License) {
o.Licenses = v
}
// GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *Product) GetAttributes() map[string]interface{} {
if o == nil || IsNil(o.Attributes) {
var ret map[string]interface{}
return ret
}
return o.Attributes
}
// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Product) GetAttributesOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.Attributes) {
return map[string]interface{}{}, false
}
return o.Attributes, true
}
// HasAttributes returns a boolean if a field has been set.
func (o *Product) HasAttributes() bool {
if o != nil && !IsNil(o.Attributes) {
return true
}
return false
}
// SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *Product) SetAttributes(v map[string]interface{}) {
o.Attributes = v
}
// GetZone returns the Zone field value if set, zero value otherwise.
func (o *Product) GetZone() string {
if o == nil || IsNil(o.Zone) {
var ret string
return ret
}
return *o.Zone
}
// GetZoneOk returns a tuple with the Zone field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Product) GetZoneOk() (*string, bool) {
if o == nil || IsNil(o.Zone) {
return nil, false
}
return o.Zone, true
}
// HasZone returns a boolean if a field has been set.
func (o *Product) HasZone() bool {
if o != nil && !IsNil(o.Zone) {
return true
}
return false
}
// SetZone gets a reference to the given string and assigns it to the Zone field.
func (o *Product) SetZone(v string) {
o.Zone = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *Product) 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 *Product) 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 *Product) 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 *Product) SetStatus(v string) {
o.Status = &v
}
// GetStatusDateTime returns the StatusDateTime field value if set, zero value otherwise.
func (o *Product) GetStatusDateTime() SailPointTime {
if o == nil || IsNil(o.StatusDateTime) {
var ret SailPointTime
return ret
}
return *o.StatusDateTime
}
// GetStatusDateTimeOk returns a tuple with the StatusDateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Product) GetStatusDateTimeOk() (*SailPointTime, bool) {
if o == nil || IsNil(o.StatusDateTime) {
return nil, false
}
return o.StatusDateTime, true
}
// HasStatusDateTime returns a boolean if a field has been set.
func (o *Product) HasStatusDateTime() bool {
if o != nil && !IsNil(o.StatusDateTime) {
return true
}
return false
}
// SetStatusDateTime gets a reference to the given SailPointTime and assigns it to the StatusDateTime field.
func (o *Product) SetStatusDateTime(v SailPointTime) {
o.StatusDateTime = &v
}
// GetReason returns the Reason field value if set, zero value otherwise.
func (o *Product) GetReason() string {
if o == nil || IsNil(o.Reason) {
var ret string
return ret
}
return *o.Reason
}
// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Product) GetReasonOk() (*string, bool) {
if o == nil || IsNil(o.Reason) {
return nil, false
}
return o.Reason, true
}
// HasReason returns a boolean if a field has been set.
func (o *Product) HasReason() bool {
if o != nil && !IsNil(o.Reason) {
return true
}
return false
}
// SetReason gets a reference to the given string and assigns it to the Reason field.
func (o *Product) SetReason(v string) {
o.Reason = &v
}
// GetNotes returns the Notes field value if set, zero value otherwise.
func (o *Product) GetNotes() string {
if o == nil || IsNil(o.Notes) {
var ret string
return ret
}
return *o.Notes
}
// GetNotesOk returns a tuple with the Notes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Product) GetNotesOk() (*string, bool) {
if o == nil || IsNil(o.Notes) {
return nil, false
}
return o.Notes, true
}
// HasNotes returns a boolean if a field has been set.
func (o *Product) HasNotes() bool {
if o != nil && !IsNil(o.Notes) {
return true
}
return false
}
// SetNotes gets a reference to the given string and assigns it to the Notes field.
func (o *Product) SetNotes(v string) {
o.Notes = &v
}
// GetDateCreated returns the DateCreated field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Product) GetDateCreated() SailPointTime {
if o == nil || IsNil(o.DateCreated.Get()) {
var ret SailPointTime
return ret
}
return *o.DateCreated.Get()
}
// GetDateCreatedOk returns a tuple with the DateCreated field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Product) GetDateCreatedOk() (*SailPointTime, bool) {
if o == nil {
return nil, false
}
return o.DateCreated.Get(), o.DateCreated.IsSet()
}
// HasDateCreated returns a boolean if a field has been set.
func (o *Product) HasDateCreated() bool {
if o != nil && o.DateCreated.IsSet() {
return true
}
return false
}
// SetDateCreated gets a reference to the given NullableTime and assigns it to the DateCreated field.
func (o *Product) SetDateCreated(v SailPointTime) {
o.DateCreated.Set(&v)
}
// SetDateCreatedNil sets the value for DateCreated to be an explicit nil
func (o *Product) SetDateCreatedNil() {
o.DateCreated.Set(nil)
}
// UnsetDateCreated ensures that no value is present for DateCreated, not even an explicit nil
func (o *Product) UnsetDateCreated() {
o.DateCreated.Unset()
}
// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Product) GetLastUpdated() SailPointTime {
if o == nil || IsNil(o.LastUpdated.Get()) {
var ret SailPointTime
return ret
}
return *o.LastUpdated.Get()
}
// GetLastUpdatedOk returns a tuple with the LastUpdated field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Product) GetLastUpdatedOk() (*SailPointTime, bool) {
if o == nil {
return nil, false
}
return o.LastUpdated.Get(), o.LastUpdated.IsSet()
}
// HasLastUpdated returns a boolean if a field has been set.
func (o *Product) HasLastUpdated() bool {
if o != nil && o.LastUpdated.IsSet() {
return true
}
return false
}
// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field.
func (o *Product) SetLastUpdated(v SailPointTime) {
o.LastUpdated.Set(&v)
}
// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil
func (o *Product) SetLastUpdatedNil() {
o.LastUpdated.Set(nil)
}
// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil
func (o *Product) UnsetLastUpdated() {
o.LastUpdated.Unset()
}
// GetOrgType returns the OrgType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Product) GetOrgType() string {
if o == nil || IsNil(o.OrgType.Get()) {
var ret string
return ret
}
return *o.OrgType.Get()
}
// GetOrgTypeOk returns a tuple with the OrgType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Product) GetOrgTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.OrgType.Get(), o.OrgType.IsSet()
}
// HasOrgType returns a boolean if a field has been set.
func (o *Product) HasOrgType() bool {
if o != nil && o.OrgType.IsSet() {
return true
}
return false
}
// SetOrgType gets a reference to the given NullableString and assigns it to the OrgType field.
func (o *Product) SetOrgType(v string) {
o.OrgType.Set(&v)
}
// SetOrgTypeNil sets the value for OrgType to be an explicit nil
func (o *Product) SetOrgTypeNil() {
o.OrgType.Set(nil)
}
// UnsetOrgType ensures that no value is present for OrgType, not even an explicit nil
func (o *Product) UnsetOrgType() {
o.OrgType.Unset()
}
func (o Product) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o Product) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ProductName) {
toSerialize["productName"] = o.ProductName
}
if !IsNil(o.Url) {
toSerialize["url"] = o.Url
}
if !IsNil(o.ProductTenantId) {
toSerialize["productTenantId"] = o.ProductTenantId
}
if !IsNil(o.ProductRegion) {
toSerialize["productRegion"] = o.ProductRegion
}
if !IsNil(o.ProductRight) {
toSerialize["productRight"] = o.ProductRight
}
if o.ApiUrl.IsSet() {
toSerialize["apiUrl"] = o.ApiUrl.Get()
}
if !IsNil(o.Licenses) {
toSerialize["licenses"] = o.Licenses
}
if !IsNil(o.Attributes) {
toSerialize["attributes"] = o.Attributes
}
if !IsNil(o.Zone) {
toSerialize["zone"] = o.Zone
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
if !IsNil(o.StatusDateTime) {
toSerialize["statusDateTime"] = o.StatusDateTime
}
if !IsNil(o.Reason) {
toSerialize["reason"] = o.Reason
}
if !IsNil(o.Notes) {
toSerialize["notes"] = o.Notes
}
if o.DateCreated.IsSet() {
toSerialize["dateCreated"] = o.DateCreated.Get()
}
if o.LastUpdated.IsSet() {
toSerialize["lastUpdated"] = o.LastUpdated.Get()
}
if o.OrgType.IsSet() {
toSerialize["orgType"] = o.OrgType.Get()
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *Product) UnmarshalJSON(data []byte) (err error) {
varProduct := _Product{}
err = json.Unmarshal(data, &varProduct)
if err != nil {
return err
}
*o = Product(varProduct)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "productName")
delete(additionalProperties, "url")
delete(additionalProperties, "productTenantId")
delete(additionalProperties, "productRegion")
delete(additionalProperties, "productRight")
delete(additionalProperties, "apiUrl")
delete(additionalProperties, "licenses")
delete(additionalProperties, "attributes")
delete(additionalProperties, "zone")
delete(additionalProperties, "status")
delete(additionalProperties, "statusDateTime")
delete(additionalProperties, "reason")
delete(additionalProperties, "notes")
delete(additionalProperties, "dateCreated")
delete(additionalProperties, "lastUpdated")
delete(additionalProperties, "orgType")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableProduct struct {
value *Product
isSet bool
}
func (v NullableProduct) Get() *Product {
return v.value
}
func (v *NullableProduct) Set(val *Product) {
v.value = val
v.isSet = true
}
func (v NullableProduct) IsSet() bool {
return v.isSet
}
func (v *NullableProduct) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableProduct(val *Product) *NullableProduct {
return &NullableProduct{value: val, isSet: true}
}
func (v NullableProduct) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableProduct) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}