-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_games_by_game_id_v1_all_of_include.go
135 lines (110 loc) · 3.72 KB
/
model_games_by_game_id_v1_all_of_include.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
/*
TheGamesDB API
API Documentation
API version: 2.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package gamesdb
import (
"encoding/json"
)
// GamesByGameIDV1AllOfInclude struct for GamesByGameIDV1AllOfInclude
type GamesByGameIDV1AllOfInclude struct {
Boxart GamesByGameIDAllOfIncludeBoxart `json:"boxart"`
Platform map[string]PlatformSkinny `json:"platform"`
}
// NewGamesByGameIDV1AllOfInclude instantiates a new GamesByGameIDV1AllOfInclude 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 NewGamesByGameIDV1AllOfInclude(boxart GamesByGameIDAllOfIncludeBoxart, platform map[string]PlatformSkinny) *GamesByGameIDV1AllOfInclude {
this := GamesByGameIDV1AllOfInclude{}
this.Boxart = boxart
this.Platform = platform
return &this
}
// NewGamesByGameIDV1AllOfIncludeWithDefaults instantiates a new GamesByGameIDV1AllOfInclude 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 NewGamesByGameIDV1AllOfIncludeWithDefaults() *GamesByGameIDV1AllOfInclude {
this := GamesByGameIDV1AllOfInclude{}
return &this
}
// GetBoxart returns the Boxart field value
func (o *GamesByGameIDV1AllOfInclude) GetBoxart() GamesByGameIDAllOfIncludeBoxart {
if o == nil {
var ret GamesByGameIDAllOfIncludeBoxart
return ret
}
return o.Boxart
}
// GetBoxartOk returns a tuple with the Boxart field value
// and a boolean to check if the value has been set.
func (o *GamesByGameIDV1AllOfInclude) GetBoxartOk() (*GamesByGameIDAllOfIncludeBoxart, bool) {
if o == nil {
return nil, false
}
return &o.Boxart, true
}
// SetBoxart sets field value
func (o *GamesByGameIDV1AllOfInclude) SetBoxart(v GamesByGameIDAllOfIncludeBoxart) {
o.Boxart = v
}
// GetPlatform returns the Platform field value
func (o *GamesByGameIDV1AllOfInclude) GetPlatform() map[string]PlatformSkinny {
if o == nil {
var ret map[string]PlatformSkinny
return ret
}
return o.Platform
}
// GetPlatformOk returns a tuple with the Platform field value
// and a boolean to check if the value has been set.
func (o *GamesByGameIDV1AllOfInclude) GetPlatformOk() (*map[string]PlatformSkinny, bool) {
if o == nil {
return nil, false
}
return &o.Platform, true
}
// SetPlatform sets field value
func (o *GamesByGameIDV1AllOfInclude) SetPlatform(v map[string]PlatformSkinny) {
o.Platform = v
}
func (o GamesByGameIDV1AllOfInclude) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["boxart"] = o.Boxart
}
if true {
toSerialize["platform"] = o.Platform
}
return json.Marshal(toSerialize)
}
type NullableGamesByGameIDV1AllOfInclude struct {
value *GamesByGameIDV1AllOfInclude
isSet bool
}
func (v NullableGamesByGameIDV1AllOfInclude) Get() *GamesByGameIDV1AllOfInclude {
return v.value
}
func (v *NullableGamesByGameIDV1AllOfInclude) Set(val *GamesByGameIDV1AllOfInclude) {
v.value = val
v.isSet = true
}
func (v NullableGamesByGameIDV1AllOfInclude) IsSet() bool {
return v.isSet
}
func (v *NullableGamesByGameIDV1AllOfInclude) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGamesByGameIDV1AllOfInclude(val *GamesByGameIDV1AllOfInclude) *NullableGamesByGameIDV1AllOfInclude {
return &NullableGamesByGameIDV1AllOfInclude{value: val, isSet: true}
}
func (v NullableGamesByGameIDV1AllOfInclude) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGamesByGameIDV1AllOfInclude) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}