-
Notifications
You must be signed in to change notification settings - Fork 141
/
model_contract_call_view_request.go
229 lines (188 loc) · 6.02 KB
/
model_contract_call_view_request.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
/*
Wasp API
REST API for the Wasp node
API version: 0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package apiclient
import (
"encoding/json"
)
// checks if the ContractCallViewRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ContractCallViewRequest{}
// ContractCallViewRequest struct for ContractCallViewRequest
type ContractCallViewRequest struct {
Arguments JSONDict `json:"arguments"`
// The contract name as HName (Hex)
ContractHName string `json:"contractHName"`
// The contract name
ContractName string `json:"contractName"`
// The function name as HName (Hex)
FunctionHName string `json:"functionHName"`
// The function name
FunctionName string `json:"functionName"`
}
// NewContractCallViewRequest instantiates a new ContractCallViewRequest 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 NewContractCallViewRequest(arguments JSONDict, contractHName string, contractName string, functionHName string, functionName string) *ContractCallViewRequest {
this := ContractCallViewRequest{}
this.Arguments = arguments
this.ContractHName = contractHName
this.ContractName = contractName
this.FunctionHName = functionHName
this.FunctionName = functionName
return &this
}
// NewContractCallViewRequestWithDefaults instantiates a new ContractCallViewRequest 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 NewContractCallViewRequestWithDefaults() *ContractCallViewRequest {
this := ContractCallViewRequest{}
return &this
}
// GetArguments returns the Arguments field value
func (o *ContractCallViewRequest) GetArguments() JSONDict {
if o == nil {
var ret JSONDict
return ret
}
return o.Arguments
}
// GetArgumentsOk returns a tuple with the Arguments field value
// and a boolean to check if the value has been set.
func (o *ContractCallViewRequest) GetArgumentsOk() (*JSONDict, bool) {
if o == nil {
return nil, false
}
return &o.Arguments, true
}
// SetArguments sets field value
func (o *ContractCallViewRequest) SetArguments(v JSONDict) {
o.Arguments = v
}
// GetContractHName returns the ContractHName field value
func (o *ContractCallViewRequest) GetContractHName() string {
if o == nil {
var ret string
return ret
}
return o.ContractHName
}
// GetContractHNameOk returns a tuple with the ContractHName field value
// and a boolean to check if the value has been set.
func (o *ContractCallViewRequest) GetContractHNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ContractHName, true
}
// SetContractHName sets field value
func (o *ContractCallViewRequest) SetContractHName(v string) {
o.ContractHName = v
}
// GetContractName returns the ContractName field value
func (o *ContractCallViewRequest) GetContractName() string {
if o == nil {
var ret string
return ret
}
return o.ContractName
}
// GetContractNameOk returns a tuple with the ContractName field value
// and a boolean to check if the value has been set.
func (o *ContractCallViewRequest) GetContractNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ContractName, true
}
// SetContractName sets field value
func (o *ContractCallViewRequest) SetContractName(v string) {
o.ContractName = v
}
// GetFunctionHName returns the FunctionHName field value
func (o *ContractCallViewRequest) GetFunctionHName() string {
if o == nil {
var ret string
return ret
}
return o.FunctionHName
}
// GetFunctionHNameOk returns a tuple with the FunctionHName field value
// and a boolean to check if the value has been set.
func (o *ContractCallViewRequest) GetFunctionHNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.FunctionHName, true
}
// SetFunctionHName sets field value
func (o *ContractCallViewRequest) SetFunctionHName(v string) {
o.FunctionHName = v
}
// GetFunctionName returns the FunctionName field value
func (o *ContractCallViewRequest) GetFunctionName() string {
if o == nil {
var ret string
return ret
}
return o.FunctionName
}
// GetFunctionNameOk returns a tuple with the FunctionName field value
// and a boolean to check if the value has been set.
func (o *ContractCallViewRequest) GetFunctionNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.FunctionName, true
}
// SetFunctionName sets field value
func (o *ContractCallViewRequest) SetFunctionName(v string) {
o.FunctionName = v
}
func (o ContractCallViewRequest) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ContractCallViewRequest) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["arguments"] = o.Arguments
toSerialize["contractHName"] = o.ContractHName
toSerialize["contractName"] = o.ContractName
toSerialize["functionHName"] = o.FunctionHName
toSerialize["functionName"] = o.FunctionName
return toSerialize, nil
}
type NullableContractCallViewRequest struct {
value *ContractCallViewRequest
isSet bool
}
func (v NullableContractCallViewRequest) Get() *ContractCallViewRequest {
return v.value
}
func (v *NullableContractCallViewRequest) Set(val *ContractCallViewRequest) {
v.value = val
v.isSet = true
}
func (v NullableContractCallViewRequest) IsSet() bool {
return v.isSet
}
func (v *NullableContractCallViewRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableContractCallViewRequest(val *ContractCallViewRequest) *NullableContractCallViewRequest {
return &NullableContractCallViewRequest{value: val, isSet: true}
}
func (v NullableContractCallViewRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableContractCallViewRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}