/* 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 SchemaConfigField type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaConfigField{} // SchemaConfigField struct for SchemaConfigField type SchemaConfigField struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` Options []SchemaConfigFieldOption `json:"options,omitempty"` Required *bool `json:"required,omitempty"` Title *string `json:"title,omitempty"` Type *string `json:"type,omitempty"` UiOptions *SchemaConfigFieldUIOptions `json:"ui_options,omitempty"` Value map[string]interface{} `json:"value,omitempty"` } // NewSchemaConfigField instantiates a new SchemaConfigField 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 NewSchemaConfigField() *SchemaConfigField { this := SchemaConfigField{} return &this } // NewSchemaConfigFieldWithDefaults instantiates a new SchemaConfigField 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 NewSchemaConfigFieldWithDefaults() *SchemaConfigField { this := SchemaConfigField{} return &this } // GetDescription returns the Description field value if set, zero value otherwise. func (o *SchemaConfigField) GetDescription() string { if o == nil || IsNil(o.Description) { var ret string return ret } return *o.Description } // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaConfigField) GetDescriptionOk() (*string, bool) { if o == nil || IsNil(o.Description) { return nil, false } return o.Description, true } // HasDescription returns a boolean if a field has been set. func (o *SchemaConfigField) HasDescription() bool { if o != nil && !IsNil(o.Description) { return true } return false } // SetDescription gets a reference to the given string and assigns it to the Description field. func (o *SchemaConfigField) SetDescription(v string) { o.Description = &v } // GetName returns the Name field value if set, zero value otherwise. func (o *SchemaConfigField) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret } return *o.Name } // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaConfigField) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true } // HasName returns a boolean if a field has been set. func (o *SchemaConfigField) HasName() bool { if o != nil && !IsNil(o.Name) { return true } return false } // SetName gets a reference to the given string and assigns it to the Name field. func (o *SchemaConfigField) SetName(v string) { o.Name = &v } // GetOptions returns the Options field value if set, zero value otherwise. func (o *SchemaConfigField) GetOptions() []SchemaConfigFieldOption { if o == nil || IsNil(o.Options) { var ret []SchemaConfigFieldOption return ret } return o.Options } // GetOptionsOk returns a tuple with the Options field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaConfigField) GetOptionsOk() ([]SchemaConfigFieldOption, bool) { if o == nil || IsNil(o.Options) { return nil, false } return o.Options, true } // HasOptions returns a boolean if a field has been set. func (o *SchemaConfigField) HasOptions() bool { if o != nil && !IsNil(o.Options) { return true } return false } // SetOptions gets a reference to the given []SchemaConfigFieldOption and assigns it to the Options field. func (o *SchemaConfigField) SetOptions(v []SchemaConfigFieldOption) { o.Options = v } // GetRequired returns the Required field value if set, zero value otherwise. func (o *SchemaConfigField) GetRequired() bool { if o == nil || IsNil(o.Required) { var ret bool return ret } return *o.Required } // GetRequiredOk returns a tuple with the Required field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaConfigField) GetRequiredOk() (*bool, bool) { if o == nil || IsNil(o.Required) { return nil, false } return o.Required, true } // HasRequired returns a boolean if a field has been set. func (o *SchemaConfigField) HasRequired() bool { if o != nil && !IsNil(o.Required) { return true } return false } // SetRequired gets a reference to the given bool and assigns it to the Required field. func (o *SchemaConfigField) SetRequired(v bool) { o.Required = &v } // GetTitle returns the Title field value if set, zero value otherwise. func (o *SchemaConfigField) GetTitle() string { if o == nil || IsNil(o.Title) { var ret string return ret } return *o.Title } // GetTitleOk returns a tuple with the Title field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaConfigField) GetTitleOk() (*string, bool) { if o == nil || IsNil(o.Title) { return nil, false } return o.Title, true } // HasTitle returns a boolean if a field has been set. func (o *SchemaConfigField) HasTitle() bool { if o != nil && !IsNil(o.Title) { return true } return false } // SetTitle gets a reference to the given string and assigns it to the Title field. func (o *SchemaConfigField) SetTitle(v string) { o.Title = &v } // GetType returns the Type field value if set, zero value otherwise. func (o *SchemaConfigField) GetType() string { if o == nil || IsNil(o.Type) { var ret string return ret } return *o.Type } // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaConfigField) GetTypeOk() (*string, bool) { if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true } // HasType returns a boolean if a field has been set. func (o *SchemaConfigField) HasType() bool { if o != nil && !IsNil(o.Type) { return true } return false } // SetType gets a reference to the given string and assigns it to the Type field. func (o *SchemaConfigField) SetType(v string) { o.Type = &v } // GetUiOptions returns the UiOptions field value if set, zero value otherwise. func (o *SchemaConfigField) GetUiOptions() SchemaConfigFieldUIOptions { if o == nil || IsNil(o.UiOptions) { var ret SchemaConfigFieldUIOptions return ret } return *o.UiOptions } // GetUiOptionsOk returns a tuple with the UiOptions field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaConfigField) GetUiOptionsOk() (*SchemaConfigFieldUIOptions, bool) { if o == nil || IsNil(o.UiOptions) { return nil, false } return o.UiOptions, true } // HasUiOptions returns a boolean if a field has been set. func (o *SchemaConfigField) HasUiOptions() bool { if o != nil && !IsNil(o.UiOptions) { return true } return false } // SetUiOptions gets a reference to the given SchemaConfigFieldUIOptions and assigns it to the UiOptions field. func (o *SchemaConfigField) SetUiOptions(v SchemaConfigFieldUIOptions) { o.UiOptions = &v } // GetValue returns the Value field value if set, zero value otherwise. func (o *SchemaConfigField) GetValue() map[string]interface{} { if o == nil || IsNil(o.Value) { var ret map[string]interface{} return ret } return o.Value } // GetValueOk returns a tuple with the Value field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaConfigField) GetValueOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Value) { return map[string]interface{}{}, false } return o.Value, true } // HasValue returns a boolean if a field has been set. func (o *SchemaConfigField) HasValue() bool { if o != nil && !IsNil(o.Value) { return true } return false } // SetValue gets a reference to the given map[string]interface{} and assigns it to the Value field. func (o *SchemaConfigField) SetValue(v map[string]interface{}) { o.Value = v } func (o SchemaConfigField) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaConfigField) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Description) { toSerialize["description"] = o.Description } if !IsNil(o.Name) { toSerialize["name"] = o.Name } if !IsNil(o.Options) { toSerialize["options"] = o.Options } if !IsNil(o.Required) { toSerialize["required"] = o.Required } if !IsNil(o.Title) { toSerialize["title"] = o.Title } if !IsNil(o.Type) { toSerialize["type"] = o.Type } if !IsNil(o.UiOptions) { toSerialize["ui_options"] = o.UiOptions } if !IsNil(o.Value) { toSerialize["value"] = o.Value } return toSerialize, nil } type NullableSchemaConfigField struct { value *SchemaConfigField isSet bool } func (v NullableSchemaConfigField) Get() *SchemaConfigField { return v.value } func (v *NullableSchemaConfigField) Set(val *SchemaConfigField) { v.value = val v.isSet = true } func (v NullableSchemaConfigField) IsSet() bool { return v.isSet } func (v *NullableSchemaConfigField) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaConfigField(val *SchemaConfigField) *NullableSchemaConfigField { return &NullableSchemaConfigField{value: val, isSet: true} } func (v NullableSchemaConfigField) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaConfigField) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }