first version
This commit is contained in:
234
model_schema_site_custom_css_html_req.go
Normal file
234
model_schema_site_custom_css_html_req.go
Normal file
@@ -0,0 +1,234 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
answer api
|
||||
|
||||
API version: v0.0.1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the SchemaSiteCustomCssHTMLReq type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaSiteCustomCssHTMLReq{}
|
||||
|
||||
// SchemaSiteCustomCssHTMLReq struct for SchemaSiteCustomCssHTMLReq
|
||||
type SchemaSiteCustomCssHTMLReq struct {
|
||||
CustomCss *string `json:"custom_css,omitempty"`
|
||||
CustomFooter *string `json:"custom_footer,omitempty"`
|
||||
CustomHead *string `json:"custom_head,omitempty"`
|
||||
CustomHeader *string `json:"custom_header,omitempty"`
|
||||
}
|
||||
|
||||
// NewSchemaSiteCustomCssHTMLReq instantiates a new SchemaSiteCustomCssHTMLReq 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 NewSchemaSiteCustomCssHTMLReq() *SchemaSiteCustomCssHTMLReq {
|
||||
this := SchemaSiteCustomCssHTMLReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaSiteCustomCssHTMLReqWithDefaults instantiates a new SchemaSiteCustomCssHTMLReq 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 NewSchemaSiteCustomCssHTMLReqWithDefaults() *SchemaSiteCustomCssHTMLReq {
|
||||
this := SchemaSiteCustomCssHTMLReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCustomCss returns the CustomCss field value if set, zero value otherwise.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) GetCustomCss() string {
|
||||
if o == nil || IsNil(o.CustomCss) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.CustomCss
|
||||
}
|
||||
|
||||
// GetCustomCssOk returns a tuple with the CustomCss field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) GetCustomCssOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.CustomCss) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CustomCss, true
|
||||
}
|
||||
|
||||
// HasCustomCss returns a boolean if a field has been set.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) HasCustomCss() bool {
|
||||
if o != nil && !IsNil(o.CustomCss) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCustomCss gets a reference to the given string and assigns it to the CustomCss field.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) SetCustomCss(v string) {
|
||||
o.CustomCss = &v
|
||||
}
|
||||
|
||||
// GetCustomFooter returns the CustomFooter field value if set, zero value otherwise.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) GetCustomFooter() string {
|
||||
if o == nil || IsNil(o.CustomFooter) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.CustomFooter
|
||||
}
|
||||
|
||||
// GetCustomFooterOk returns a tuple with the CustomFooter field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) GetCustomFooterOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.CustomFooter) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CustomFooter, true
|
||||
}
|
||||
|
||||
// HasCustomFooter returns a boolean if a field has been set.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) HasCustomFooter() bool {
|
||||
if o != nil && !IsNil(o.CustomFooter) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCustomFooter gets a reference to the given string and assigns it to the CustomFooter field.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) SetCustomFooter(v string) {
|
||||
o.CustomFooter = &v
|
||||
}
|
||||
|
||||
// GetCustomHead returns the CustomHead field value if set, zero value otherwise.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) GetCustomHead() string {
|
||||
if o == nil || IsNil(o.CustomHead) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.CustomHead
|
||||
}
|
||||
|
||||
// GetCustomHeadOk returns a tuple with the CustomHead field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) GetCustomHeadOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.CustomHead) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CustomHead, true
|
||||
}
|
||||
|
||||
// HasCustomHead returns a boolean if a field has been set.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) HasCustomHead() bool {
|
||||
if o != nil && !IsNil(o.CustomHead) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCustomHead gets a reference to the given string and assigns it to the CustomHead field.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) SetCustomHead(v string) {
|
||||
o.CustomHead = &v
|
||||
}
|
||||
|
||||
// GetCustomHeader returns the CustomHeader field value if set, zero value otherwise.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) GetCustomHeader() string {
|
||||
if o == nil || IsNil(o.CustomHeader) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.CustomHeader
|
||||
}
|
||||
|
||||
// GetCustomHeaderOk returns a tuple with the CustomHeader field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) GetCustomHeaderOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.CustomHeader) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CustomHeader, true
|
||||
}
|
||||
|
||||
// HasCustomHeader returns a boolean if a field has been set.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) HasCustomHeader() bool {
|
||||
if o != nil && !IsNil(o.CustomHeader) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCustomHeader gets a reference to the given string and assigns it to the CustomHeader field.
|
||||
func (o *SchemaSiteCustomCssHTMLReq) SetCustomHeader(v string) {
|
||||
o.CustomHeader = &v
|
||||
}
|
||||
|
||||
func (o SchemaSiteCustomCssHTMLReq) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaSiteCustomCssHTMLReq) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.CustomCss) {
|
||||
toSerialize["custom_css"] = o.CustomCss
|
||||
}
|
||||
if !IsNil(o.CustomFooter) {
|
||||
toSerialize["custom_footer"] = o.CustomFooter
|
||||
}
|
||||
if !IsNil(o.CustomHead) {
|
||||
toSerialize["custom_head"] = o.CustomHead
|
||||
}
|
||||
if !IsNil(o.CustomHeader) {
|
||||
toSerialize["custom_header"] = o.CustomHeader
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaSiteCustomCssHTMLReq struct {
|
||||
value *SchemaSiteCustomCssHTMLReq
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaSiteCustomCssHTMLReq) Get() *SchemaSiteCustomCssHTMLReq {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaSiteCustomCssHTMLReq) Set(val *SchemaSiteCustomCssHTMLReq) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaSiteCustomCssHTMLReq) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaSiteCustomCssHTMLReq) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaSiteCustomCssHTMLReq(val *SchemaSiteCustomCssHTMLReq) *NullableSchemaSiteCustomCssHTMLReq {
|
||||
return &NullableSchemaSiteCustomCssHTMLReq{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaSiteCustomCssHTMLReq) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaSiteCustomCssHTMLReq) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user