/* 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 SchemaNotificationClearIDRequest type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaNotificationClearIDRequest{} // SchemaNotificationClearIDRequest struct for SchemaNotificationClearIDRequest type SchemaNotificationClearIDRequest struct { Id *string `json:"id,omitempty"` } // NewSchemaNotificationClearIDRequest instantiates a new SchemaNotificationClearIDRequest 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 NewSchemaNotificationClearIDRequest() *SchemaNotificationClearIDRequest { this := SchemaNotificationClearIDRequest{} return &this } // NewSchemaNotificationClearIDRequestWithDefaults instantiates a new SchemaNotificationClearIDRequest 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 NewSchemaNotificationClearIDRequestWithDefaults() *SchemaNotificationClearIDRequest { this := SchemaNotificationClearIDRequest{} return &this } // GetId returns the Id field value if set, zero value otherwise. func (o *SchemaNotificationClearIDRequest) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret } return *o.Id } // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaNotificationClearIDRequest) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true } // HasId returns a boolean if a field has been set. func (o *SchemaNotificationClearIDRequest) HasId() bool { if o != nil && !IsNil(o.Id) { return true } return false } // SetId gets a reference to the given string and assigns it to the Id field. func (o *SchemaNotificationClearIDRequest) SetId(v string) { o.Id = &v } func (o SchemaNotificationClearIDRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaNotificationClearIDRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Id) { toSerialize["id"] = o.Id } return toSerialize, nil } type NullableSchemaNotificationClearIDRequest struct { value *SchemaNotificationClearIDRequest isSet bool } func (v NullableSchemaNotificationClearIDRequest) Get() *SchemaNotificationClearIDRequest { return v.value } func (v *NullableSchemaNotificationClearIDRequest) Set(val *SchemaNotificationClearIDRequest) { v.value = val v.isSet = true } func (v NullableSchemaNotificationClearIDRequest) IsSet() bool { return v.isSet } func (v *NullableSchemaNotificationClearIDRequest) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaNotificationClearIDRequest(val *SchemaNotificationClearIDRequest) *NullableSchemaNotificationClearIDRequest { return &NullableSchemaNotificationClearIDRequest{value: val, isSet: true} } func (v NullableSchemaNotificationClearIDRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaNotificationClearIDRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }