/* 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 SchemaUnreviewedRevisionInfoInfo type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaUnreviewedRevisionInfoInfo{} // SchemaUnreviewedRevisionInfoInfo struct for SchemaUnreviewedRevisionInfoInfo type SchemaUnreviewedRevisionInfoInfo struct { Content *string `json:"content,omitempty"` Html *string `json:"html,omitempty"` ObjectId *string `json:"object_id,omitempty"` Tags []SchemaTagResp `json:"tags,omitempty"` Title *string `json:"title,omitempty"` } // NewSchemaUnreviewedRevisionInfoInfo instantiates a new SchemaUnreviewedRevisionInfoInfo 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 NewSchemaUnreviewedRevisionInfoInfo() *SchemaUnreviewedRevisionInfoInfo { this := SchemaUnreviewedRevisionInfoInfo{} return &this } // NewSchemaUnreviewedRevisionInfoInfoWithDefaults instantiates a new SchemaUnreviewedRevisionInfoInfo 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 NewSchemaUnreviewedRevisionInfoInfoWithDefaults() *SchemaUnreviewedRevisionInfoInfo { this := SchemaUnreviewedRevisionInfoInfo{} return &this } // GetContent returns the Content field value if set, zero value otherwise. func (o *SchemaUnreviewedRevisionInfoInfo) GetContent() string { if o == nil || IsNil(o.Content) { var ret string return ret } return *o.Content } // GetContentOk returns a tuple with the Content field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaUnreviewedRevisionInfoInfo) GetContentOk() (*string, bool) { if o == nil || IsNil(o.Content) { return nil, false } return o.Content, true } // HasContent returns a boolean if a field has been set. func (o *SchemaUnreviewedRevisionInfoInfo) HasContent() bool { if o != nil && !IsNil(o.Content) { return true } return false } // SetContent gets a reference to the given string and assigns it to the Content field. func (o *SchemaUnreviewedRevisionInfoInfo) SetContent(v string) { o.Content = &v } // GetHtml returns the Html field value if set, zero value otherwise. func (o *SchemaUnreviewedRevisionInfoInfo) GetHtml() string { if o == nil || IsNil(o.Html) { var ret string return ret } return *o.Html } // GetHtmlOk returns a tuple with the Html field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaUnreviewedRevisionInfoInfo) GetHtmlOk() (*string, bool) { if o == nil || IsNil(o.Html) { return nil, false } return o.Html, true } // HasHtml returns a boolean if a field has been set. func (o *SchemaUnreviewedRevisionInfoInfo) HasHtml() bool { if o != nil && !IsNil(o.Html) { return true } return false } // SetHtml gets a reference to the given string and assigns it to the Html field. func (o *SchemaUnreviewedRevisionInfoInfo) SetHtml(v string) { o.Html = &v } // GetObjectId returns the ObjectId field value if set, zero value otherwise. func (o *SchemaUnreviewedRevisionInfoInfo) GetObjectId() string { if o == nil || IsNil(o.ObjectId) { var ret string return ret } return *o.ObjectId } // GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaUnreviewedRevisionInfoInfo) GetObjectIdOk() (*string, bool) { if o == nil || IsNil(o.ObjectId) { return nil, false } return o.ObjectId, true } // HasObjectId returns a boolean if a field has been set. func (o *SchemaUnreviewedRevisionInfoInfo) HasObjectId() bool { if o != nil && !IsNil(o.ObjectId) { return true } return false } // SetObjectId gets a reference to the given string and assigns it to the ObjectId field. func (o *SchemaUnreviewedRevisionInfoInfo) SetObjectId(v string) { o.ObjectId = &v } // GetTags returns the Tags field value if set, zero value otherwise. func (o *SchemaUnreviewedRevisionInfoInfo) GetTags() []SchemaTagResp { if o == nil || IsNil(o.Tags) { var ret []SchemaTagResp return ret } return o.Tags } // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaUnreviewedRevisionInfoInfo) GetTagsOk() ([]SchemaTagResp, bool) { if o == nil || IsNil(o.Tags) { return nil, false } return o.Tags, true } // HasTags returns a boolean if a field has been set. func (o *SchemaUnreviewedRevisionInfoInfo) HasTags() bool { if o != nil && !IsNil(o.Tags) { return true } return false } // SetTags gets a reference to the given []SchemaTagResp and assigns it to the Tags field. func (o *SchemaUnreviewedRevisionInfoInfo) SetTags(v []SchemaTagResp) { o.Tags = v } // GetTitle returns the Title field value if set, zero value otherwise. func (o *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) SetTitle(v string) { o.Title = &v } func (o SchemaUnreviewedRevisionInfoInfo) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaUnreviewedRevisionInfoInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Content) { toSerialize["content"] = o.Content } if !IsNil(o.Html) { toSerialize["html"] = o.Html } if !IsNil(o.ObjectId) { toSerialize["object_id"] = o.ObjectId } if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } if !IsNil(o.Title) { toSerialize["title"] = o.Title } return toSerialize, nil } type NullableSchemaUnreviewedRevisionInfoInfo struct { value *SchemaUnreviewedRevisionInfoInfo isSet bool } func (v NullableSchemaUnreviewedRevisionInfoInfo) Get() *SchemaUnreviewedRevisionInfoInfo { return v.value } func (v *NullableSchemaUnreviewedRevisionInfoInfo) Set(val *SchemaUnreviewedRevisionInfoInfo) { v.value = val v.isSet = true } func (v NullableSchemaUnreviewedRevisionInfoInfo) IsSet() bool { return v.isSet } func (v *NullableSchemaUnreviewedRevisionInfoInfo) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaUnreviewedRevisionInfoInfo(val *SchemaUnreviewedRevisionInfoInfo) *NullableSchemaUnreviewedRevisionInfoInfo { return &NullableSchemaUnreviewedRevisionInfoInfo{value: val, isSet: true} } func (v NullableSchemaUnreviewedRevisionInfoInfo) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaUnreviewedRevisionInfoInfo) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }