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