/*
Daytona Toolbox API

Daytona Toolbox API

API version: v0.0.0-dev
*/

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

package toolbox

import (
	"encoding/json"
)

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

// ChartElement struct for ChartElement
type ChartElement struct {
	Angle *float32 `json:"angle,omitempty"`
	FirstQuartile *float32 `json:"first_quartile,omitempty"`
	Group *string `json:"group,omitempty"`
	Label *string `json:"label,omitempty"`
	Max *float32 `json:"max,omitempty"`
	Median *float32 `json:"median,omitempty"`
	Min *float32 `json:"min,omitempty"`
	Outliers []float32 `json:"outliers,omitempty"`
	Png *string `json:"png,omitempty"`
	Points [][]float32 `json:"points,omitempty"`
	Radius *float32 `json:"radius,omitempty"`
	ThirdQuartile *float32 `json:"third_quartile,omitempty"`
	Title *string `json:"title,omitempty"`
	Type *string `json:"type,omitempty"`
	Value *string `json:"value,omitempty"`
	XLabel *string `json:"x_label,omitempty"`
	YLabel *string `json:"y_label,omitempty"`
}

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

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

// GetAngle returns the Angle field value if set, zero value otherwise.
func (o *ChartElement) GetAngle() float32 {
	if o == nil || IsNil(o.Angle) {
		var ret float32
		return ret
	}
	return *o.Angle
}

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

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

	return false
}

// SetAngle gets a reference to the given float32 and assigns it to the Angle field.
func (o *ChartElement) SetAngle(v float32) {
	o.Angle = &v
}

// GetFirstQuartile returns the FirstQuartile field value if set, zero value otherwise.
func (o *ChartElement) GetFirstQuartile() float32 {
	if o == nil || IsNil(o.FirstQuartile) {
		var ret float32
		return ret
	}
	return *o.FirstQuartile
}

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

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

	return false
}

// SetFirstQuartile gets a reference to the given float32 and assigns it to the FirstQuartile field.
func (o *ChartElement) SetFirstQuartile(v float32) {
	o.FirstQuartile = &v
}

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

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

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

	return false
}

// SetGroup gets a reference to the given string and assigns it to the Group field.
func (o *ChartElement) SetGroup(v string) {
	o.Group = &v
}

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

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

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

	return false
}

// SetLabel gets a reference to the given string and assigns it to the Label field.
func (o *ChartElement) SetLabel(v string) {
	o.Label = &v
}

// GetMax returns the Max field value if set, zero value otherwise.
func (o *ChartElement) GetMax() float32 {
	if o == nil || IsNil(o.Max) {
		var ret float32
		return ret
	}
	return *o.Max
}

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

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

	return false
}

// SetMax gets a reference to the given float32 and assigns it to the Max field.
func (o *ChartElement) SetMax(v float32) {
	o.Max = &v
}

// GetMedian returns the Median field value if set, zero value otherwise.
func (o *ChartElement) GetMedian() float32 {
	if o == nil || IsNil(o.Median) {
		var ret float32
		return ret
	}
	return *o.Median
}

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

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

	return false
}

// SetMedian gets a reference to the given float32 and assigns it to the Median field.
func (o *ChartElement) SetMedian(v float32) {
	o.Median = &v
}

// GetMin returns the Min field value if set, zero value otherwise.
func (o *ChartElement) GetMin() float32 {
	if o == nil || IsNil(o.Min) {
		var ret float32
		return ret
	}
	return *o.Min
}

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

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

	return false
}

// SetMin gets a reference to the given float32 and assigns it to the Min field.
func (o *ChartElement) SetMin(v float32) {
	o.Min = &v
}

// GetOutliers returns the Outliers field value if set, zero value otherwise.
func (o *ChartElement) GetOutliers() []float32 {
	if o == nil || IsNil(o.Outliers) {
		var ret []float32
		return ret
	}
	return o.Outliers
}

// GetOutliersOk returns a tuple with the Outliers field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChartElement) GetOutliersOk() ([]float32, bool) {
	if o == nil || IsNil(o.Outliers) {
		return nil, false
	}
	return o.Outliers, true
}

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

	return false
}

// SetOutliers gets a reference to the given []float32 and assigns it to the Outliers field.
func (o *ChartElement) SetOutliers(v []float32) {
	o.Outliers = v
}

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

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

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

	return false
}

// SetPng gets a reference to the given string and assigns it to the Png field.
func (o *ChartElement) SetPng(v string) {
	o.Png = &v
}

// GetPoints returns the Points field value if set, zero value otherwise.
func (o *ChartElement) GetPoints() [][]float32 {
	if o == nil || IsNil(o.Points) {
		var ret [][]float32
		return ret
	}
	return o.Points
}

// GetPointsOk returns a tuple with the Points field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChartElement) GetPointsOk() ([][]float32, bool) {
	if o == nil || IsNil(o.Points) {
		return nil, false
	}
	return o.Points, true
}

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

	return false
}

// SetPoints gets a reference to the given [][]float32 and assigns it to the Points field.
func (o *ChartElement) SetPoints(v [][]float32) {
	o.Points = v
}

// GetRadius returns the Radius field value if set, zero value otherwise.
func (o *ChartElement) GetRadius() float32 {
	if o == nil || IsNil(o.Radius) {
		var ret float32
		return ret
	}
	return *o.Radius
}

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

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

	return false
}

// SetRadius gets a reference to the given float32 and assigns it to the Radius field.
func (o *ChartElement) SetRadius(v float32) {
	o.Radius = &v
}

// GetThirdQuartile returns the ThirdQuartile field value if set, zero value otherwise.
func (o *ChartElement) GetThirdQuartile() float32 {
	if o == nil || IsNil(o.ThirdQuartile) {
		var ret float32
		return ret
	}
	return *o.ThirdQuartile
}

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

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

	return false
}

// SetThirdQuartile gets a reference to the given float32 and assigns it to the ThirdQuartile field.
func (o *ChartElement) SetThirdQuartile(v float32) {
	o.ThirdQuartile = &v
}

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

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

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

	return false
}

// SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *ChartElement) SetTitle(v string) {
	o.Title = &v
}

// GetType returns the Type field value if set, zero value otherwise.
func (o *ChartElement) 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 *ChartElement) 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 *ChartElement) 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 *ChartElement) SetType(v string) {
	o.Type = &v
}

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

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

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

	return false
}

// SetValue gets a reference to the given string and assigns it to the Value field.
func (o *ChartElement) SetValue(v string) {
	o.Value = &v
}

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

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

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

	return false
}

// SetXLabel gets a reference to the given string and assigns it to the XLabel field.
func (o *ChartElement) SetXLabel(v string) {
	o.XLabel = &v
}

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

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

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

	return false
}

// SetYLabel gets a reference to the given string and assigns it to the YLabel field.
func (o *ChartElement) SetYLabel(v string) {
	o.YLabel = &v
}

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

func (o ChartElement) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.Angle) {
		toSerialize["angle"] = o.Angle
	}
	if !IsNil(o.FirstQuartile) {
		toSerialize["first_quartile"] = o.FirstQuartile
	}
	if !IsNil(o.Group) {
		toSerialize["group"] = o.Group
	}
	if !IsNil(o.Label) {
		toSerialize["label"] = o.Label
	}
	if !IsNil(o.Max) {
		toSerialize["max"] = o.Max
	}
	if !IsNil(o.Median) {
		toSerialize["median"] = o.Median
	}
	if !IsNil(o.Min) {
		toSerialize["min"] = o.Min
	}
	if !IsNil(o.Outliers) {
		toSerialize["outliers"] = o.Outliers
	}
	if !IsNil(o.Png) {
		toSerialize["png"] = o.Png
	}
	if !IsNil(o.Points) {
		toSerialize["points"] = o.Points
	}
	if !IsNil(o.Radius) {
		toSerialize["radius"] = o.Radius
	}
	if !IsNil(o.ThirdQuartile) {
		toSerialize["third_quartile"] = o.ThirdQuartile
	}
	if !IsNil(o.Title) {
		toSerialize["title"] = o.Title
	}
	if !IsNil(o.Type) {
		toSerialize["type"] = o.Type
	}
	if !IsNil(o.Value) {
		toSerialize["value"] = o.Value
	}
	if !IsNil(o.XLabel) {
		toSerialize["x_label"] = o.XLabel
	}
	if !IsNil(o.YLabel) {
		toSerialize["y_label"] = o.YLabel
	}
	return toSerialize, nil
}

type NullableChartElement struct {
	value *ChartElement
	isSet bool
}

func (v NullableChartElement) Get() *ChartElement {
	return v.value
}

func (v *NullableChartElement) Set(val *ChartElement) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableChartElement(val *ChartElement) *NullableChartElement {
	return &NullableChartElement{value: val, isSet: true}
}

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

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


