/* 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 answer_sdk import ( "encoding/json" ) // checks if the SchemaNotificationClearRequest type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaNotificationClearRequest{} // SchemaNotificationClearRequest struct for SchemaNotificationClearRequest type SchemaNotificationClearRequest struct { // inbox achievement Type *string `json:"type,omitempty"` } // NewSchemaNotificationClearRequest instantiates a new SchemaNotificationClearRequest 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 NewSchemaNotificationClearRequest() *SchemaNotificationClearRequest { this := SchemaNotificationClearRequest{} return &this } // NewSchemaNotificationClearRequestWithDefaults instantiates a new SchemaNotificationClearRequest 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 NewSchemaNotificationClearRequestWithDefaults() *SchemaNotificationClearRequest { this := SchemaNotificationClearRequest{} return &this } // GetType returns the Type field value if set, zero value otherwise. func (o *SchemaNotificationClearRequest) GetType() string { if o == nil || IsNil(o.Type) { var ret string return ret } return *o.Type } // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaNotificationClearRequest) GetTypeOk() (*string, bool) { if o == nil || IsNil(o.Type) { return nil, false } return o.Type, true } // HasType returns a boolean if a field has been set. func (o *SchemaNotificationClearRequest) HasType() bool { if o != nil && !IsNil(o.Type) { return true } return false } // SetType gets a reference to the given string and assigns it to the Type field. func (o *SchemaNotificationClearRequest) SetType(v string) { o.Type = &v } func (o SchemaNotificationClearRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaNotificationClearRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Type) { toSerialize["type"] = o.Type } return toSerialize, nil } type NullableSchemaNotificationClearRequest struct { value *SchemaNotificationClearRequest isSet bool } func (v NullableSchemaNotificationClearRequest) Get() *SchemaNotificationClearRequest { return v.value } func (v *NullableSchemaNotificationClearRequest) Set(val *SchemaNotificationClearRequest) { v.value = val v.isSet = true } func (v NullableSchemaNotificationClearRequest) IsSet() bool { return v.isSet } func (v *NullableSchemaNotificationClearRequest) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaNotificationClearRequest(val *SchemaNotificationClearRequest) *NullableSchemaNotificationClearRequest { return &NullableSchemaNotificationClearRequest{value: val, isSet: true} } func (v NullableSchemaNotificationClearRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaNotificationClearRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }