/*
Lethean Blockchain API

OpenAPI for Lethean Blockchain

API version: 6.0.1
*/

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

package lthn

import (
	"encoding/json"
)

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

// BlockProcessingPerformanceModel struct for BlockProcessingPerformanceModel
type BlockProcessingPerformanceModel struct {
	BlockProcessingTime0 *int32 `json:"block_processing_time_0,omitempty"`
	BlockProcessingTime1 *int32 `json:"block_processing_time_1,omitempty"`
	TargetCalculatingTime2 *int32 `json:"target_calculating_time_2,omitempty"`
	LonghashCalculatingTime3 *int32 `json:"longhash_calculating_time_3,omitempty"`
	AllTxsInsertTime5 *int32 `json:"all_txs_insert_time_5,omitempty"`
	EtcStuff6 *int32 `json:"etc_stuff_6,omitempty"`
	InsertTime4 *int32 `json:"insert_time_4,omitempty"`
	RaiseBlockCoreEvent *int32 `json:"raise_block_core_event,omitempty"`
	ValidateMinerTransactionTime *int32 `json:"validate_miner_transaction_time,omitempty"`
	CollectRangeproofsDataFromTxTime *int32 `json:"collect_rangeproofs_data_from_tx_time,omitempty"`
	VerifyMultipleZcOutsRangeProofsTime *int32 `json:"verify_multiple_zc_outs_range_proofs_time,omitempty"`
	TargetCalculatingEnumBlocks *int32 `json:"target_calculating_enum_blocks,omitempty"`
	TargetCalculatingCalc *int32 `json:"target_calculating_calc,omitempty"`
	PosValidateKiSearch *int32 `json:"pos_validate_ki_search,omitempty"`
	PosValidateGetOutKeysForInputs *int32 `json:"pos_validate_get_out_keys_for_inputs,omitempty"`
	PosValidateZvp *int32 `json:"pos_validate_zvp,omitempty"`
	AdditionalProperties map[string]interface{}
}

type _BlockProcessingPerformanceModel BlockProcessingPerformanceModel

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

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

// GetBlockProcessingTime0 returns the BlockProcessingTime0 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetBlockProcessingTime0() int32 {
	if o == nil || IsNil(o.BlockProcessingTime0) {
		var ret int32
		return ret
	}
	return *o.BlockProcessingTime0
}

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

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

	return false
}

// SetBlockProcessingTime0 gets a reference to the given int32 and assigns it to the BlockProcessingTime0 field.
func (o *BlockProcessingPerformanceModel) SetBlockProcessingTime0(v int32) {
	o.BlockProcessingTime0 = &v
}

// GetBlockProcessingTime1 returns the BlockProcessingTime1 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetBlockProcessingTime1() int32 {
	if o == nil || IsNil(o.BlockProcessingTime1) {
		var ret int32
		return ret
	}
	return *o.BlockProcessingTime1
}

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

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

	return false
}

// SetBlockProcessingTime1 gets a reference to the given int32 and assigns it to the BlockProcessingTime1 field.
func (o *BlockProcessingPerformanceModel) SetBlockProcessingTime1(v int32) {
	o.BlockProcessingTime1 = &v
}

// GetTargetCalculatingTime2 returns the TargetCalculatingTime2 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetTargetCalculatingTime2() int32 {
	if o == nil || IsNil(o.TargetCalculatingTime2) {
		var ret int32
		return ret
	}
	return *o.TargetCalculatingTime2
}

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

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

	return false
}

// SetTargetCalculatingTime2 gets a reference to the given int32 and assigns it to the TargetCalculatingTime2 field.
func (o *BlockProcessingPerformanceModel) SetTargetCalculatingTime2(v int32) {
	o.TargetCalculatingTime2 = &v
}

// GetLonghashCalculatingTime3 returns the LonghashCalculatingTime3 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetLonghashCalculatingTime3() int32 {
	if o == nil || IsNil(o.LonghashCalculatingTime3) {
		var ret int32
		return ret
	}
	return *o.LonghashCalculatingTime3
}

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

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

	return false
}

// SetLonghashCalculatingTime3 gets a reference to the given int32 and assigns it to the LonghashCalculatingTime3 field.
func (o *BlockProcessingPerformanceModel) SetLonghashCalculatingTime3(v int32) {
	o.LonghashCalculatingTime3 = &v
}

// GetAllTxsInsertTime5 returns the AllTxsInsertTime5 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetAllTxsInsertTime5() int32 {
	if o == nil || IsNil(o.AllTxsInsertTime5) {
		var ret int32
		return ret
	}
	return *o.AllTxsInsertTime5
}

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

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

	return false
}

// SetAllTxsInsertTime5 gets a reference to the given int32 and assigns it to the AllTxsInsertTime5 field.
func (o *BlockProcessingPerformanceModel) SetAllTxsInsertTime5(v int32) {
	o.AllTxsInsertTime5 = &v
}

// GetEtcStuff6 returns the EtcStuff6 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetEtcStuff6() int32 {
	if o == nil || IsNil(o.EtcStuff6) {
		var ret int32
		return ret
	}
	return *o.EtcStuff6
}

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

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

	return false
}

// SetEtcStuff6 gets a reference to the given int32 and assigns it to the EtcStuff6 field.
func (o *BlockProcessingPerformanceModel) SetEtcStuff6(v int32) {
	o.EtcStuff6 = &v
}

// GetInsertTime4 returns the InsertTime4 field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetInsertTime4() int32 {
	if o == nil || IsNil(o.InsertTime4) {
		var ret int32
		return ret
	}
	return *o.InsertTime4
}

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

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

	return false
}

// SetInsertTime4 gets a reference to the given int32 and assigns it to the InsertTime4 field.
func (o *BlockProcessingPerformanceModel) SetInsertTime4(v int32) {
	o.InsertTime4 = &v
}

// GetRaiseBlockCoreEvent returns the RaiseBlockCoreEvent field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetRaiseBlockCoreEvent() int32 {
	if o == nil || IsNil(o.RaiseBlockCoreEvent) {
		var ret int32
		return ret
	}
	return *o.RaiseBlockCoreEvent
}

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

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

	return false
}

// SetRaiseBlockCoreEvent gets a reference to the given int32 and assigns it to the RaiseBlockCoreEvent field.
func (o *BlockProcessingPerformanceModel) SetRaiseBlockCoreEvent(v int32) {
	o.RaiseBlockCoreEvent = &v
}

// GetValidateMinerTransactionTime returns the ValidateMinerTransactionTime field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetValidateMinerTransactionTime() int32 {
	if o == nil || IsNil(o.ValidateMinerTransactionTime) {
		var ret int32
		return ret
	}
	return *o.ValidateMinerTransactionTime
}

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

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

	return false
}

// SetValidateMinerTransactionTime gets a reference to the given int32 and assigns it to the ValidateMinerTransactionTime field.
func (o *BlockProcessingPerformanceModel) SetValidateMinerTransactionTime(v int32) {
	o.ValidateMinerTransactionTime = &v
}

// GetCollectRangeproofsDataFromTxTime returns the CollectRangeproofsDataFromTxTime field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetCollectRangeproofsDataFromTxTime() int32 {
	if o == nil || IsNil(o.CollectRangeproofsDataFromTxTime) {
		var ret int32
		return ret
	}
	return *o.CollectRangeproofsDataFromTxTime
}

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

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

	return false
}

// SetCollectRangeproofsDataFromTxTime gets a reference to the given int32 and assigns it to the CollectRangeproofsDataFromTxTime field.
func (o *BlockProcessingPerformanceModel) SetCollectRangeproofsDataFromTxTime(v int32) {
	o.CollectRangeproofsDataFromTxTime = &v
}

// GetVerifyMultipleZcOutsRangeProofsTime returns the VerifyMultipleZcOutsRangeProofsTime field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetVerifyMultipleZcOutsRangeProofsTime() int32 {
	if o == nil || IsNil(o.VerifyMultipleZcOutsRangeProofsTime) {
		var ret int32
		return ret
	}
	return *o.VerifyMultipleZcOutsRangeProofsTime
}

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

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

	return false
}

// SetVerifyMultipleZcOutsRangeProofsTime gets a reference to the given int32 and assigns it to the VerifyMultipleZcOutsRangeProofsTime field.
func (o *BlockProcessingPerformanceModel) SetVerifyMultipleZcOutsRangeProofsTime(v int32) {
	o.VerifyMultipleZcOutsRangeProofsTime = &v
}

// GetTargetCalculatingEnumBlocks returns the TargetCalculatingEnumBlocks field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetTargetCalculatingEnumBlocks() int32 {
	if o == nil || IsNil(o.TargetCalculatingEnumBlocks) {
		var ret int32
		return ret
	}
	return *o.TargetCalculatingEnumBlocks
}

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

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

	return false
}

// SetTargetCalculatingEnumBlocks gets a reference to the given int32 and assigns it to the TargetCalculatingEnumBlocks field.
func (o *BlockProcessingPerformanceModel) SetTargetCalculatingEnumBlocks(v int32) {
	o.TargetCalculatingEnumBlocks = &v
}

// GetTargetCalculatingCalc returns the TargetCalculatingCalc field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetTargetCalculatingCalc() int32 {
	if o == nil || IsNil(o.TargetCalculatingCalc) {
		var ret int32
		return ret
	}
	return *o.TargetCalculatingCalc
}

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

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

	return false
}

// SetTargetCalculatingCalc gets a reference to the given int32 and assigns it to the TargetCalculatingCalc field.
func (o *BlockProcessingPerformanceModel) SetTargetCalculatingCalc(v int32) {
	o.TargetCalculatingCalc = &v
}

// GetPosValidateKiSearch returns the PosValidateKiSearch field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetPosValidateKiSearch() int32 {
	if o == nil || IsNil(o.PosValidateKiSearch) {
		var ret int32
		return ret
	}
	return *o.PosValidateKiSearch
}

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

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

	return false
}

// SetPosValidateKiSearch gets a reference to the given int32 and assigns it to the PosValidateKiSearch field.
func (o *BlockProcessingPerformanceModel) SetPosValidateKiSearch(v int32) {
	o.PosValidateKiSearch = &v
}

// GetPosValidateGetOutKeysForInputs returns the PosValidateGetOutKeysForInputs field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetPosValidateGetOutKeysForInputs() int32 {
	if o == nil || IsNil(o.PosValidateGetOutKeysForInputs) {
		var ret int32
		return ret
	}
	return *o.PosValidateGetOutKeysForInputs
}

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

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

	return false
}

// SetPosValidateGetOutKeysForInputs gets a reference to the given int32 and assigns it to the PosValidateGetOutKeysForInputs field.
func (o *BlockProcessingPerformanceModel) SetPosValidateGetOutKeysForInputs(v int32) {
	o.PosValidateGetOutKeysForInputs = &v
}

// GetPosValidateZvp returns the PosValidateZvp field value if set, zero value otherwise.
func (o *BlockProcessingPerformanceModel) GetPosValidateZvp() int32 {
	if o == nil || IsNil(o.PosValidateZvp) {
		var ret int32
		return ret
	}
	return *o.PosValidateZvp
}

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

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

	return false
}

// SetPosValidateZvp gets a reference to the given int32 and assigns it to the PosValidateZvp field.
func (o *BlockProcessingPerformanceModel) SetPosValidateZvp(v int32) {
	o.PosValidateZvp = &v
}

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

func (o BlockProcessingPerformanceModel) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.BlockProcessingTime0) {
		toSerialize["block_processing_time_0"] = o.BlockProcessingTime0
	}
	if !IsNil(o.BlockProcessingTime1) {
		toSerialize["block_processing_time_1"] = o.BlockProcessingTime1
	}
	if !IsNil(o.TargetCalculatingTime2) {
		toSerialize["target_calculating_time_2"] = o.TargetCalculatingTime2
	}
	if !IsNil(o.LonghashCalculatingTime3) {
		toSerialize["longhash_calculating_time_3"] = o.LonghashCalculatingTime3
	}
	if !IsNil(o.AllTxsInsertTime5) {
		toSerialize["all_txs_insert_time_5"] = o.AllTxsInsertTime5
	}
	if !IsNil(o.EtcStuff6) {
		toSerialize["etc_stuff_6"] = o.EtcStuff6
	}
	if !IsNil(o.InsertTime4) {
		toSerialize["insert_time_4"] = o.InsertTime4
	}
	if !IsNil(o.RaiseBlockCoreEvent) {
		toSerialize["raise_block_core_event"] = o.RaiseBlockCoreEvent
	}
	if !IsNil(o.ValidateMinerTransactionTime) {
		toSerialize["validate_miner_transaction_time"] = o.ValidateMinerTransactionTime
	}
	if !IsNil(o.CollectRangeproofsDataFromTxTime) {
		toSerialize["collect_rangeproofs_data_from_tx_time"] = o.CollectRangeproofsDataFromTxTime
	}
	if !IsNil(o.VerifyMultipleZcOutsRangeProofsTime) {
		toSerialize["verify_multiple_zc_outs_range_proofs_time"] = o.VerifyMultipleZcOutsRangeProofsTime
	}
	if !IsNil(o.TargetCalculatingEnumBlocks) {
		toSerialize["target_calculating_enum_blocks"] = o.TargetCalculatingEnumBlocks
	}
	if !IsNil(o.TargetCalculatingCalc) {
		toSerialize["target_calculating_calc"] = o.TargetCalculatingCalc
	}
	if !IsNil(o.PosValidateKiSearch) {
		toSerialize["pos_validate_ki_search"] = o.PosValidateKiSearch
	}
	if !IsNil(o.PosValidateGetOutKeysForInputs) {
		toSerialize["pos_validate_get_out_keys_for_inputs"] = o.PosValidateGetOutKeysForInputs
	}
	if !IsNil(o.PosValidateZvp) {
		toSerialize["pos_validate_zvp"] = o.PosValidateZvp
	}

	for key, value := range o.AdditionalProperties {
		toSerialize[key] = value
	}

	return toSerialize, nil
}

func (o *BlockProcessingPerformanceModel) UnmarshalJSON(data []byte) (err error) {
	varBlockProcessingPerformanceModel := _BlockProcessingPerformanceModel{}

	err = json.Unmarshal(data, &varBlockProcessingPerformanceModel)

	if err != nil {
		return err
	}

	*o = BlockProcessingPerformanceModel(varBlockProcessingPerformanceModel)

	additionalProperties := make(map[string]interface{})

	if err = json.Unmarshal(data, &additionalProperties); err == nil {
		delete(additionalProperties, "block_processing_time_0")
		delete(additionalProperties, "block_processing_time_1")
		delete(additionalProperties, "target_calculating_time_2")
		delete(additionalProperties, "longhash_calculating_time_3")
		delete(additionalProperties, "all_txs_insert_time_5")
		delete(additionalProperties, "etc_stuff_6")
		delete(additionalProperties, "insert_time_4")
		delete(additionalProperties, "raise_block_core_event")
		delete(additionalProperties, "validate_miner_transaction_time")
		delete(additionalProperties, "collect_rangeproofs_data_from_tx_time")
		delete(additionalProperties, "verify_multiple_zc_outs_range_proofs_time")
		delete(additionalProperties, "target_calculating_enum_blocks")
		delete(additionalProperties, "target_calculating_calc")
		delete(additionalProperties, "pos_validate_ki_search")
		delete(additionalProperties, "pos_validate_get_out_keys_for_inputs")
		delete(additionalProperties, "pos_validate_zvp")
		o.AdditionalProperties = additionalProperties
	}

	return err
}

type NullableBlockProcessingPerformanceModel struct {
	value *BlockProcessingPerformanceModel
	isSet bool
}

func (v NullableBlockProcessingPerformanceModel) Get() *BlockProcessingPerformanceModel {
	return v.value
}

func (v *NullableBlockProcessingPerformanceModel) Set(val *BlockProcessingPerformanceModel) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableBlockProcessingPerformanceModel(val *BlockProcessingPerformanceModel) *NullableBlockProcessingPerformanceModel {
	return &NullableBlockProcessingPerformanceModel{value: val, isSet: true}
}

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

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


