/* 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 SchemaSiteSeoResp type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaSiteSeoResp{} // SchemaSiteSeoResp struct for SchemaSiteSeoResp type SchemaSiteSeoResp struct { Permalink int32 `json:"permalink"` Robots string `json:"robots"` } // NewSchemaSiteSeoResp instantiates a new SchemaSiteSeoResp 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 NewSchemaSiteSeoResp(permalink int32, robots string) *SchemaSiteSeoResp { this := SchemaSiteSeoResp{} this.Permalink = permalink this.Robots = robots return &this } // NewSchemaSiteSeoRespWithDefaults instantiates a new SchemaSiteSeoResp 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 NewSchemaSiteSeoRespWithDefaults() *SchemaSiteSeoResp { this := SchemaSiteSeoResp{} return &this } // GetPermalink returns the Permalink field value func (o *SchemaSiteSeoResp) GetPermalink() int32 { if o == nil { var ret int32 return ret } return o.Permalink } // GetPermalinkOk returns a tuple with the Permalink field value // and a boolean to check if the value has been set. func (o *SchemaSiteSeoResp) GetPermalinkOk() (*int32, bool) { if o == nil { return nil, false } return &o.Permalink, true } // SetPermalink sets field value func (o *SchemaSiteSeoResp) SetPermalink(v int32) { o.Permalink = v } // GetRobots returns the Robots field value func (o *SchemaSiteSeoResp) GetRobots() string { if o == nil { var ret string return ret } return o.Robots } // GetRobotsOk returns a tuple with the Robots field value // and a boolean to check if the value has been set. func (o *SchemaSiteSeoResp) GetRobotsOk() (*string, bool) { if o == nil { return nil, false } return &o.Robots, true } // SetRobots sets field value func (o *SchemaSiteSeoResp) SetRobots(v string) { o.Robots = v } func (o SchemaSiteSeoResp) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaSiteSeoResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["permalink"] = o.Permalink toSerialize["robots"] = o.Robots return toSerialize, nil } type NullableSchemaSiteSeoResp struct { value *SchemaSiteSeoResp isSet bool } func (v NullableSchemaSiteSeoResp) Get() *SchemaSiteSeoResp { return v.value } func (v *NullableSchemaSiteSeoResp) Set(val *SchemaSiteSeoResp) { v.value = val v.isSet = true } func (v NullableSchemaSiteSeoResp) IsSet() bool { return v.isSet } func (v *NullableSchemaSiteSeoResp) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaSiteSeoResp(val *SchemaSiteSeoResp) *NullableSchemaSiteSeoResp { return &NullableSchemaSiteSeoResp{value: val, isSet: true} } func (v NullableSchemaSiteSeoResp) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaSiteSeoResp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }