/*
1Backend

AI-native microservices platform.

API version: 0.8.2
Contact: sales@singulatron.com
*/

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package openapi

import (
	"encoding/json"
)

// checks if the FirehoseSvcErrorResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &FirehoseSvcErrorResponse{}

// FirehoseSvcErrorResponse struct for FirehoseSvcErrorResponse
type FirehoseSvcErrorResponse struct {
	Error *string `json:"error,omitempty"`
}

// NewFirehoseSvcErrorResponse instantiates a new FirehoseSvcErrorResponse 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 NewFirehoseSvcErrorResponse() *FirehoseSvcErrorResponse {
	this := FirehoseSvcErrorResponse{}
	return &this
}

// NewFirehoseSvcErrorResponseWithDefaults instantiates a new FirehoseSvcErrorResponse 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 NewFirehoseSvcErrorResponseWithDefaults() *FirehoseSvcErrorResponse {
	this := FirehoseSvcErrorResponse{}
	return &this
}

// GetError returns the Error field value if set, zero value otherwise.
func (o *FirehoseSvcErrorResponse) GetError() string {
	if o == nil || IsNil(o.Error) {
		var ret string
		return ret
	}
	return *o.Error
}

// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *FirehoseSvcErrorResponse) GetErrorOk() (*string, bool) {
	if o == nil || IsNil(o.Error) {
		return nil, false
	}
	return o.Error, true
}

// HasError returns a boolean if a field has been set.
func (o *FirehoseSvcErrorResponse) HasError() bool {
	if o != nil && !IsNil(o.Error) {
		return true
	}

	return false
}

// SetError gets a reference to the given string and assigns it to the Error field.
func (o *FirehoseSvcErrorResponse) SetError(v string) {
	o.Error = &v
}

func (o FirehoseSvcErrorResponse) MarshalJSON() ([]byte, error) {
	toSerialize,err := o.ToMap()
	if err != nil {
		return []byte{}, err
	}
	return json.Marshal(toSerialize)
}

func (o FirehoseSvcErrorResponse) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.Error) {
		toSerialize["error"] = o.Error
	}
	return toSerialize, nil
}

type NullableFirehoseSvcErrorResponse struct {
	value *FirehoseSvcErrorResponse
	isSet bool
}

func (v NullableFirehoseSvcErrorResponse) Get() *FirehoseSvcErrorResponse {
	return v.value
}

func (v *NullableFirehoseSvcErrorResponse) Set(val *FirehoseSvcErrorResponse) {
	v.value = val
	v.isSet = true
}

func (v NullableFirehoseSvcErrorResponse) IsSet() bool {
	return v.isSet
}

func (v *NullableFirehoseSvcErrorResponse) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableFirehoseSvcErrorResponse(val *FirehoseSvcErrorResponse) *NullableFirehoseSvcErrorResponse {
	return &NullableFirehoseSvcErrorResponse{value: val, isSet: true}
}

func (v NullableFirehoseSvcErrorResponse) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableFirehoseSvcErrorResponse) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}


