/* 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 SchemaPostRenderReq type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaPostRenderReq{} // SchemaPostRenderReq struct for SchemaPostRenderReq type SchemaPostRenderReq struct { Content *string `json:"content,omitempty"` } // NewSchemaPostRenderReq instantiates a new SchemaPostRenderReq 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 NewSchemaPostRenderReq() *SchemaPostRenderReq { this := SchemaPostRenderReq{} return &this } // NewSchemaPostRenderReqWithDefaults instantiates a new SchemaPostRenderReq 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 NewSchemaPostRenderReqWithDefaults() *SchemaPostRenderReq { this := SchemaPostRenderReq{} return &this } // GetContent returns the Content field value if set, zero value otherwise. func (o *SchemaPostRenderReq) 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 *SchemaPostRenderReq) 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 *SchemaPostRenderReq) 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 *SchemaPostRenderReq) SetContent(v string) { o.Content = &v } func (o SchemaPostRenderReq) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaPostRenderReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Content) { toSerialize["content"] = o.Content } return toSerialize, nil } type NullableSchemaPostRenderReq struct { value *SchemaPostRenderReq isSet bool } func (v NullableSchemaPostRenderReq) Get() *SchemaPostRenderReq { return v.value } func (v *NullableSchemaPostRenderReq) Set(val *SchemaPostRenderReq) { v.value = val v.isSet = true } func (v NullableSchemaPostRenderReq) IsSet() bool { return v.isSet } func (v *NullableSchemaPostRenderReq) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaPostRenderReq(val *SchemaPostRenderReq) *NullableSchemaPostRenderReq { return &NullableSchemaPostRenderReq{value: val, isSet: true} } func (v NullableSchemaPostRenderReq) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaPostRenderReq) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }