/* 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 PagerPageModel type satisfies the MappedNullable interface at compile time var _ MappedNullable = &PagerPageModel{} // PagerPageModel struct for PagerPageModel type PagerPageModel struct { Count *int32 `json:"count,omitempty"` List map[string]interface{} `json:"list,omitempty"` } // NewPagerPageModel instantiates a new PagerPageModel 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 NewPagerPageModel() *PagerPageModel { this := PagerPageModel{} return &this } // NewPagerPageModelWithDefaults instantiates a new PagerPageModel 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 NewPagerPageModelWithDefaults() *PagerPageModel { this := PagerPageModel{} return &this } // GetCount returns the Count field value if set, zero value otherwise. func (o *PagerPageModel) GetCount() int32 { if o == nil || IsNil(o.Count) { var ret int32 return ret } return *o.Count } // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PagerPageModel) GetCountOk() (*int32, bool) { if o == nil || IsNil(o.Count) { return nil, false } return o.Count, true } // HasCount returns a boolean if a field has been set. func (o *PagerPageModel) HasCount() bool { if o != nil && !IsNil(o.Count) { return true } return false } // SetCount gets a reference to the given int32 and assigns it to the Count field. func (o *PagerPageModel) SetCount(v int32) { o.Count = &v } // GetList returns the List field value if set, zero value otherwise. func (o *PagerPageModel) GetList() map[string]interface{} { if o == nil || IsNil(o.List) { var ret map[string]interface{} return ret } return o.List } // GetListOk returns a tuple with the List field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PagerPageModel) GetListOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.List) { return map[string]interface{}{}, false } return o.List, true } // HasList returns a boolean if a field has been set. func (o *PagerPageModel) HasList() bool { if o != nil && !IsNil(o.List) { return true } return false } // SetList gets a reference to the given map[string]interface{} and assigns it to the List field. func (o *PagerPageModel) SetList(v map[string]interface{}) { o.List = v } func (o PagerPageModel) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o PagerPageModel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Count) { toSerialize["count"] = o.Count } if !IsNil(o.List) { toSerialize["list"] = o.List } return toSerialize, nil } type NullablePagerPageModel struct { value *PagerPageModel isSet bool } func (v NullablePagerPageModel) Get() *PagerPageModel { return v.value } func (v *NullablePagerPageModel) Set(val *PagerPageModel) { v.value = val v.isSet = true } func (v NullablePagerPageModel) IsSet() bool { return v.isSet } func (v *NullablePagerPageModel) Unset() { v.value = nil v.isSet = false } func NewNullablePagerPageModel(val *PagerPageModel) *NullablePagerPageModel { return &NullablePagerPageModel{value: val, isSet: true} } func (v NullablePagerPageModel) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullablePagerPageModel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }