233 lines
6.2 KiB
Go
233 lines
6.2 KiB
Go
/*
|
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
|
|
API version: 1.0.0
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package answer_sdk
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the SchemaUIOptionAction type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaUIOptionAction{}
|
|
|
|
// SchemaUIOptionAction struct for SchemaUIOptionAction
|
|
type SchemaUIOptionAction struct {
|
|
Loading *SchemaLoadingAction `json:"loading,omitempty"`
|
|
Method *string `json:"method,omitempty"`
|
|
OnComplete *SchemaOnCompleteAction `json:"on_complete,omitempty"`
|
|
Url *string `json:"url,omitempty"`
|
|
}
|
|
|
|
// NewSchemaUIOptionAction instantiates a new SchemaUIOptionAction 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 NewSchemaUIOptionAction() *SchemaUIOptionAction {
|
|
this := SchemaUIOptionAction{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaUIOptionActionWithDefaults instantiates a new SchemaUIOptionAction 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 NewSchemaUIOptionActionWithDefaults() *SchemaUIOptionAction {
|
|
this := SchemaUIOptionAction{}
|
|
return &this
|
|
}
|
|
|
|
// GetLoading returns the Loading field value if set, zero value otherwise.
|
|
func (o *SchemaUIOptionAction) GetLoading() SchemaLoadingAction {
|
|
if o == nil || IsNil(o.Loading) {
|
|
var ret SchemaLoadingAction
|
|
return ret
|
|
}
|
|
return *o.Loading
|
|
}
|
|
|
|
// GetLoadingOk returns a tuple with the Loading field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaUIOptionAction) GetLoadingOk() (*SchemaLoadingAction, bool) {
|
|
if o == nil || IsNil(o.Loading) {
|
|
return nil, false
|
|
}
|
|
return o.Loading, true
|
|
}
|
|
|
|
// HasLoading returns a boolean if a field has been set.
|
|
func (o *SchemaUIOptionAction) HasLoading() bool {
|
|
if o != nil && !IsNil(o.Loading) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLoading gets a reference to the given SchemaLoadingAction and assigns it to the Loading field.
|
|
func (o *SchemaUIOptionAction) SetLoading(v SchemaLoadingAction) {
|
|
o.Loading = &v
|
|
}
|
|
|
|
// GetMethod returns the Method field value if set, zero value otherwise.
|
|
func (o *SchemaUIOptionAction) GetMethod() string {
|
|
if o == nil || IsNil(o.Method) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Method
|
|
}
|
|
|
|
// GetMethodOk returns a tuple with the Method field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaUIOptionAction) GetMethodOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Method) {
|
|
return nil, false
|
|
}
|
|
return o.Method, true
|
|
}
|
|
|
|
// HasMethod returns a boolean if a field has been set.
|
|
func (o *SchemaUIOptionAction) HasMethod() bool {
|
|
if o != nil && !IsNil(o.Method) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMethod gets a reference to the given string and assigns it to the Method field.
|
|
func (o *SchemaUIOptionAction) SetMethod(v string) {
|
|
o.Method = &v
|
|
}
|
|
|
|
// GetOnComplete returns the OnComplete field value if set, zero value otherwise.
|
|
func (o *SchemaUIOptionAction) GetOnComplete() SchemaOnCompleteAction {
|
|
if o == nil || IsNil(o.OnComplete) {
|
|
var ret SchemaOnCompleteAction
|
|
return ret
|
|
}
|
|
return *o.OnComplete
|
|
}
|
|
|
|
// GetOnCompleteOk returns a tuple with the OnComplete field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaUIOptionAction) GetOnCompleteOk() (*SchemaOnCompleteAction, bool) {
|
|
if o == nil || IsNil(o.OnComplete) {
|
|
return nil, false
|
|
}
|
|
return o.OnComplete, true
|
|
}
|
|
|
|
// HasOnComplete returns a boolean if a field has been set.
|
|
func (o *SchemaUIOptionAction) HasOnComplete() bool {
|
|
if o != nil && !IsNil(o.OnComplete) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOnComplete gets a reference to the given SchemaOnCompleteAction and assigns it to the OnComplete field.
|
|
func (o *SchemaUIOptionAction) SetOnComplete(v SchemaOnCompleteAction) {
|
|
o.OnComplete = &v
|
|
}
|
|
|
|
// GetUrl returns the Url field value if set, zero value otherwise.
|
|
func (o *SchemaUIOptionAction) 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 *SchemaUIOptionAction) 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 *SchemaUIOptionAction) 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 *SchemaUIOptionAction) SetUrl(v string) {
|
|
o.Url = &v
|
|
}
|
|
|
|
func (o SchemaUIOptionAction) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaUIOptionAction) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Loading) {
|
|
toSerialize["loading"] = o.Loading
|
|
}
|
|
if !IsNil(o.Method) {
|
|
toSerialize["method"] = o.Method
|
|
}
|
|
if !IsNil(o.OnComplete) {
|
|
toSerialize["on_complete"] = o.OnComplete
|
|
}
|
|
if !IsNil(o.Url) {
|
|
toSerialize["url"] = o.Url
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaUIOptionAction struct {
|
|
value *SchemaUIOptionAction
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaUIOptionAction) Get() *SchemaUIOptionAction {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaUIOptionAction) Set(val *SchemaUIOptionAction) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaUIOptionAction) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaUIOptionAction) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaUIOptionAction(val *SchemaUIOptionAction) *NullableSchemaUIOptionAction {
|
|
return &NullableSchemaUIOptionAction{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaUIOptionAction) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaUIOptionAction) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|