/* 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 openapi import ( "encoding/json" ) // checks if the SchemaOnCompleteAction type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaOnCompleteAction{} // SchemaOnCompleteAction struct for SchemaOnCompleteAction type SchemaOnCompleteAction struct { RefreshFormConfig *bool `json:"refresh_form_config,omitempty"` ToastReturnMessage *bool `json:"toast_return_message,omitempty"` } // NewSchemaOnCompleteAction instantiates a new SchemaOnCompleteAction 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 NewSchemaOnCompleteAction() *SchemaOnCompleteAction { this := SchemaOnCompleteAction{} return &this } // NewSchemaOnCompleteActionWithDefaults instantiates a new SchemaOnCompleteAction 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 NewSchemaOnCompleteActionWithDefaults() *SchemaOnCompleteAction { this := SchemaOnCompleteAction{} return &this } // GetRefreshFormConfig returns the RefreshFormConfig field value if set, zero value otherwise. func (o *SchemaOnCompleteAction) GetRefreshFormConfig() bool { if o == nil || IsNil(o.RefreshFormConfig) { var ret bool return ret } return *o.RefreshFormConfig } // GetRefreshFormConfigOk returns a tuple with the RefreshFormConfig field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaOnCompleteAction) GetRefreshFormConfigOk() (*bool, bool) { if o == nil || IsNil(o.RefreshFormConfig) { return nil, false } return o.RefreshFormConfig, true } // HasRefreshFormConfig returns a boolean if a field has been set. func (o *SchemaOnCompleteAction) HasRefreshFormConfig() bool { if o != nil && !IsNil(o.RefreshFormConfig) { return true } return false } // SetRefreshFormConfig gets a reference to the given bool and assigns it to the RefreshFormConfig field. func (o *SchemaOnCompleteAction) SetRefreshFormConfig(v bool) { o.RefreshFormConfig = &v } // GetToastReturnMessage returns the ToastReturnMessage field value if set, zero value otherwise. func (o *SchemaOnCompleteAction) GetToastReturnMessage() bool { if o == nil || IsNil(o.ToastReturnMessage) { var ret bool return ret } return *o.ToastReturnMessage } // GetToastReturnMessageOk returns a tuple with the ToastReturnMessage field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaOnCompleteAction) GetToastReturnMessageOk() (*bool, bool) { if o == nil || IsNil(o.ToastReturnMessage) { return nil, false } return o.ToastReturnMessage, true } // HasToastReturnMessage returns a boolean if a field has been set. func (o *SchemaOnCompleteAction) HasToastReturnMessage() bool { if o != nil && !IsNil(o.ToastReturnMessage) { return true } return false } // SetToastReturnMessage gets a reference to the given bool and assigns it to the ToastReturnMessage field. func (o *SchemaOnCompleteAction) SetToastReturnMessage(v bool) { o.ToastReturnMessage = &v } func (o SchemaOnCompleteAction) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaOnCompleteAction) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.RefreshFormConfig) { toSerialize["refresh_form_config"] = o.RefreshFormConfig } if !IsNil(o.ToastReturnMessage) { toSerialize["toast_return_message"] = o.ToastReturnMessage } return toSerialize, nil } type NullableSchemaOnCompleteAction struct { value *SchemaOnCompleteAction isSet bool } func (v NullableSchemaOnCompleteAction) Get() *SchemaOnCompleteAction { return v.value } func (v *NullableSchemaOnCompleteAction) Set(val *SchemaOnCompleteAction) { v.value = val v.isSet = true } func (v NullableSchemaOnCompleteAction) IsSet() bool { return v.isSet } func (v *NullableSchemaOnCompleteAction) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaOnCompleteAction(val *SchemaOnCompleteAction) *NullableSchemaOnCompleteAction { return &NullableSchemaOnCompleteAction{value: val, isSet: true} } func (v NullableSchemaOnCompleteAction) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaOnCompleteAction) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }