162 lines
4.3 KiB
Go
162 lines
4.3 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 SchemaSearchResult type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaSearchResult{}
|
|
|
|
// SchemaSearchResult struct for SchemaSearchResult
|
|
type SchemaSearchResult struct {
|
|
Object *SchemaSearchObject `json:"object,omitempty"`
|
|
// object_type
|
|
ObjectType *string `json:"object_type,omitempty"`
|
|
}
|
|
|
|
// NewSchemaSearchResult instantiates a new SchemaSearchResult 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 NewSchemaSearchResult() *SchemaSearchResult {
|
|
this := SchemaSearchResult{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaSearchResultWithDefaults instantiates a new SchemaSearchResult 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 NewSchemaSearchResultWithDefaults() *SchemaSearchResult {
|
|
this := SchemaSearchResult{}
|
|
return &this
|
|
}
|
|
|
|
// GetObject returns the Object field value if set, zero value otherwise.
|
|
func (o *SchemaSearchResult) GetObject() SchemaSearchObject {
|
|
if o == nil || IsNil(o.Object) {
|
|
var ret SchemaSearchObject
|
|
return ret
|
|
}
|
|
return *o.Object
|
|
}
|
|
|
|
// GetObjectOk returns a tuple with the Object field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSearchResult) GetObjectOk() (*SchemaSearchObject, bool) {
|
|
if o == nil || IsNil(o.Object) {
|
|
return nil, false
|
|
}
|
|
return o.Object, true
|
|
}
|
|
|
|
// HasObject returns a boolean if a field has been set.
|
|
func (o *SchemaSearchResult) HasObject() bool {
|
|
if o != nil && !IsNil(o.Object) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetObject gets a reference to the given SchemaSearchObject and assigns it to the Object field.
|
|
func (o *SchemaSearchResult) SetObject(v SchemaSearchObject) {
|
|
o.Object = &v
|
|
}
|
|
|
|
// GetObjectType returns the ObjectType field value if set, zero value otherwise.
|
|
func (o *SchemaSearchResult) GetObjectType() string {
|
|
if o == nil || IsNil(o.ObjectType) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ObjectType
|
|
}
|
|
|
|
// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaSearchResult) GetObjectTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ObjectType) {
|
|
return nil, false
|
|
}
|
|
return o.ObjectType, true
|
|
}
|
|
|
|
// HasObjectType returns a boolean if a field has been set.
|
|
func (o *SchemaSearchResult) HasObjectType() bool {
|
|
if o != nil && !IsNil(o.ObjectType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetObjectType gets a reference to the given string and assigns it to the ObjectType field.
|
|
func (o *SchemaSearchResult) SetObjectType(v string) {
|
|
o.ObjectType = &v
|
|
}
|
|
|
|
func (o SchemaSearchResult) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaSearchResult) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Object) {
|
|
toSerialize["object"] = o.Object
|
|
}
|
|
if !IsNil(o.ObjectType) {
|
|
toSerialize["object_type"] = o.ObjectType
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaSearchResult struct {
|
|
value *SchemaSearchResult
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaSearchResult) Get() *SchemaSearchResult {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaSearchResult) Set(val *SchemaSearchResult) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaSearchResult) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaSearchResult) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaSearchResult(val *SchemaSearchResult) *NullableSchemaSearchResult {
|
|
return &NullableSchemaSearchResult{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaSearchResult) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaSearchResult) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|