/* 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 SchemaReportHandleReq type satisfies the MappedNullable interface at compile time var _ MappedNullable = &SchemaReportHandleReq{} // SchemaReportHandleReq struct for SchemaReportHandleReq type SchemaReportHandleReq struct { FlaggedContent *string `json:"flagged_content,omitempty"` FlaggedType int32 `json:"flagged_type"` Id string `json:"id"` } // NewSchemaReportHandleReq instantiates a new SchemaReportHandleReq 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 NewSchemaReportHandleReq(flaggedType int32, id string) *SchemaReportHandleReq { this := SchemaReportHandleReq{} this.FlaggedType = flaggedType this.Id = id return &this } // NewSchemaReportHandleReqWithDefaults instantiates a new SchemaReportHandleReq 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 NewSchemaReportHandleReqWithDefaults() *SchemaReportHandleReq { this := SchemaReportHandleReq{} return &this } // GetFlaggedContent returns the FlaggedContent field value if set, zero value otherwise. func (o *SchemaReportHandleReq) GetFlaggedContent() string { if o == nil || IsNil(o.FlaggedContent) { var ret string return ret } return *o.FlaggedContent } // GetFlaggedContentOk returns a tuple with the FlaggedContent field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SchemaReportHandleReq) GetFlaggedContentOk() (*string, bool) { if o == nil || IsNil(o.FlaggedContent) { return nil, false } return o.FlaggedContent, true } // HasFlaggedContent returns a boolean if a field has been set. func (o *SchemaReportHandleReq) HasFlaggedContent() bool { if o != nil && !IsNil(o.FlaggedContent) { return true } return false } // SetFlaggedContent gets a reference to the given string and assigns it to the FlaggedContent field. func (o *SchemaReportHandleReq) SetFlaggedContent(v string) { o.FlaggedContent = &v } // GetFlaggedType returns the FlaggedType field value func (o *SchemaReportHandleReq) GetFlaggedType() int32 { if o == nil { var ret int32 return ret } return o.FlaggedType } // GetFlaggedTypeOk returns a tuple with the FlaggedType field value // and a boolean to check if the value has been set. func (o *SchemaReportHandleReq) GetFlaggedTypeOk() (*int32, bool) { if o == nil { return nil, false } return &o.FlaggedType, true } // SetFlaggedType sets field value func (o *SchemaReportHandleReq) SetFlaggedType(v int32) { o.FlaggedType = v } // GetId returns the Id field value func (o *SchemaReportHandleReq) GetId() string { if o == nil { var ret string return ret } return o.Id } // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. func (o *SchemaReportHandleReq) GetIdOk() (*string, bool) { if o == nil { return nil, false } return &o.Id, true } // SetId sets field value func (o *SchemaReportHandleReq) SetId(v string) { o.Id = v } func (o SchemaReportHandleReq) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } return json.Marshal(toSerialize) } func (o SchemaReportHandleReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.FlaggedContent) { toSerialize["flagged_content"] = o.FlaggedContent } toSerialize["flagged_type"] = o.FlaggedType toSerialize["id"] = o.Id return toSerialize, nil } type NullableSchemaReportHandleReq struct { value *SchemaReportHandleReq isSet bool } func (v NullableSchemaReportHandleReq) Get() *SchemaReportHandleReq { return v.value } func (v *NullableSchemaReportHandleReq) Set(val *SchemaReportHandleReq) { v.value = val v.isSet = true } func (v NullableSchemaReportHandleReq) IsSet() bool { return v.isSet } func (v *NullableSchemaReportHandleReq) Unset() { v.value = nil v.isSet = false } func NewNullableSchemaReportHandleReq(val *SchemaReportHandleReq) *NullableSchemaReportHandleReq { return &NullableSchemaReportHandleReq{value: val, isSet: true} } func (v NullableSchemaReportHandleReq) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } func (v *NullableSchemaReportHandleReq) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) }