/* 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 SchemaActionRecordResp type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaActionRecordResp{} // SchemaActionRecordResp struct for SchemaActionRecordResp type SchemaActionRecordResp struct { CaptchaId *string `json:"captcha_id,omitempty"` CaptchaImg *string `json:"captcha_img,omitempty"` Verify *bool `json:"verify,omitempty"` } // NewSchemaActionRecordResp instantiates a new SchemaActionRecordResp 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 NewSchemaActionRecordResp() *SchemaActionRecordResp { this := SchemaActionRecordResp{} return &this } // NewSchemaActionRecordRespWithDefaults instantiates a new SchemaActionRecordResp 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 NewSchemaActionRecordRespWithDefaults() *SchemaActionRecordResp { this := SchemaActionRecordResp{} return &this } // GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. func (o *SchemaActionRecordResp) GetCaptchaId() string { if o == nil || IsNil(o.CaptchaId) { var ret string return ret } return *o.CaptchaId } // GetCaptchaIdOk returns a tuple with the CaptchaId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaActionRecordResp) GetCaptchaIdOk() (*string, bool) { if o == nil || IsNil(o.CaptchaId) { return nil, false } return o.CaptchaId, true } // HasCaptchaId returns a boolean if a field has been set. func (o *SchemaActionRecordResp) HasCaptchaId() bool { if o != nil && !IsNil(o.CaptchaId) { return true } return false } // SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. func (o *SchemaActionRecordResp) SetCaptchaId(v string) { o.CaptchaId = &v } // GetCaptchaImg returns the CaptchaImg field value if set, zero value otherwise. func (o *SchemaActionRecordResp) GetCaptchaImg() string { if o == nil || IsNil(o.CaptchaImg) { var ret string return ret } return *o.CaptchaImg } // GetCaptchaImgOk returns a tuple with the CaptchaImg field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaActionRecordResp) GetCaptchaImgOk() (*string, bool) { if o == nil || IsNil(o.CaptchaImg) { return nil, false } return o.CaptchaImg, true } // HasCaptchaImg returns a boolean if a field has been set. func (o *SchemaActionRecordResp) HasCaptchaImg() bool { if o != nil && !IsNil(o.CaptchaImg) { return true } return false } // SetCaptchaImg gets a reference to the given string and assigns it to the CaptchaImg field. func (o *SchemaActionRecordResp) SetCaptchaImg(v string) { o.CaptchaImg = &v } // GetVerify returns the Verify field value if set, zero value otherwise. func (o *SchemaActionRecordResp) GetVerify() bool { if o == nil || IsNil(o.Verify) { var ret bool return ret } return *o.Verify } // GetVerifyOk returns a tuple with the Verify field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaActionRecordResp) GetVerifyOk() (*bool, bool) { if o == nil || IsNil(o.Verify) { return nil, false } return o.Verify, true } // HasVerify returns a boolean if a field has been set. func (o *SchemaActionRecordResp) HasVerify() bool { if o != nil && !IsNil(o.Verify) { return true } return false } // SetVerify gets a reference to the given bool and assigns it to the Verify field. func (o *SchemaActionRecordResp) SetVerify(v bool) { o.Verify = &v } func (o SchemaActionRecordResp) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaActionRecordResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.CaptchaId) { toSerialize["captcha_id"] = o.CaptchaId } if !IsNil(o.CaptchaImg) { toSerialize["captcha_img"] = o.CaptchaImg } if !IsNil(o.Verify) { toSerialize["verify"] = o.Verify } return toSerialize, nil } type NullableSchemaActionRecordResp struct { value *SchemaActionRecordResp isSet bool } func (v NullableSchemaActionRecordResp) Get() *SchemaActionRecordResp { return v.value } func (v *NullableSchemaActionRecordResp) Set(val *SchemaActionRecordResp) { v.value = val v.isSet = true } func (v NullableSchemaActionRecordResp) IsSet() bool { return v.isSet } func (v *NullableSchemaActionRecordResp) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaActionRecordResp(val *SchemaActionRecordResp) *NullableSchemaActionRecordResp { return &NullableSchemaActionRecordResp{value: val, isSet: true} } func (v NullableSchemaActionRecordResp) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaActionRecordResp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }