mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
726 lines
20 KiB
Go
726 lines
20 KiB
Go
/*
|
||
Hanzo Cloud API
|
||
|
||
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
||
|
||
API version: v1
|
||
*/
|
||
|
||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||
|
||
package hanzoai
|
||
|
||
import (
|
||
"encoding/json"
|
||
"time"
|
||
)
|
||
|
||
// checks if the BenchmarkLeaderRow type satisfies the MappedNullable interface at compile time
|
||
var _ MappedNullable = &BenchmarkLeaderRow{}
|
||
|
||
// BenchmarkLeaderRow struct for BenchmarkLeaderRow
|
||
type BenchmarkLeaderRow struct {
|
||
// CIHigh is the upper bound of that interval. Wilson rather than the normal approximation because the normal one produces bounds past 100 exactly where benchmark scores live — at 194/198 that is the top of the board, not a corner case.
|
||
CiHigh *float64 `json:"ciHigh,omitempty"`
|
||
// CILow and CIHigh are the 95% Wilson interval on Measured, in percent. They are what makes the score comparable: at n=198 a 98% carries roughly ±2 points, so most differences at the top of a board are not distinguishable and a bare number implies a precision it does not have. Absent when there is no measurement.
|
||
CiLow *float64 `json:"ciLow,omitempty"`
|
||
// Claims is how many independent claims the platform holds for this model on this benchmark. More than one means several sources reported it.
|
||
Claims *int64 `json:"claims,omitempty"`
|
||
// Evidence are the evidence uris the Published claim rests on (GET /v1/research/evidence?uri=).
|
||
Evidence []string `json:"evidence,omitempty"`
|
||
// From is the org whose claim Published was promoted from, when a SuperAdmin published another org's claim rather than writing one under org admin: \"hanzo\" on a row Hanzo measured and the platform published.
|
||
From *string `json:"from,omitempty"`
|
||
// published − measured (the arena signal)
|
||
Gap *float64 `json:"gap,omitempty"`
|
||
// Mean is the unweighted average of every claim, which answers a different question from Published: what the field says on average, rather than what the vendor says about itself. With one claim the two are equal.
|
||
Mean *float64 `json:"mean,omitempty"`
|
||
// hanzo-measured accuracy % (nil if unrun)
|
||
Measured *float64 `json:"measured,omitempty"`
|
||
// MeasuredAt is when the run behind Measured was recorded.
|
||
MeasuredAt *time.Time `json:"measuredAt,omitempty"`
|
||
// the model this row scores
|
||
Model *string `json:"model,omitempty"`
|
||
// coverage — NEVER compare across different n
|
||
N *int64 `json:"n,omitempty"`
|
||
// how the vendor scored their claim: single-attempt, pass@k or agentic
|
||
Protocol *string `json:"protocol,omitempty"`
|
||
// the platform's selected claim % (nil if none)
|
||
Published *float64 `json:"published,omitempty"`
|
||
// Run names the measurement Measured came from, and MeasuredAt is when it ran. A score with no date is not a fact about a model, it is a fact about a model on a day — and models change, so the date is what makes the number checkable rather than merely quoted.
|
||
Run *string `json:"run,omitempty"`
|
||
// Runs are the research run ids the Published claim rests on (GET /v1/research/runs?id=).
|
||
Runs []string `json:"runs,omitempty"`
|
||
// Spread is the distance between the highest and lowest of them, nil when there is only one. It is the disagreement AMONG sources, which a single Published number cannot show — signal in the same way the published-minus-measured gap is.
|
||
Spread *float64 `json:"spread,omitempty"`
|
||
AdditionalProperties map[string]interface{}
|
||
}
|
||
|
||
type _BenchmarkLeaderRow BenchmarkLeaderRow
|
||
|
||
// NewBenchmarkLeaderRow instantiates a new BenchmarkLeaderRow 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 NewBenchmarkLeaderRow() *BenchmarkLeaderRow {
|
||
this := BenchmarkLeaderRow{}
|
||
return &this
|
||
}
|
||
|
||
// NewBenchmarkLeaderRowWithDefaults instantiates a new BenchmarkLeaderRow 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 NewBenchmarkLeaderRowWithDefaults() *BenchmarkLeaderRow {
|
||
this := BenchmarkLeaderRow{}
|
||
return &this
|
||
}
|
||
|
||
// GetCiHigh returns the CiHigh field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetCiHigh() float64 {
|
||
if o == nil || IsNil(o.CiHigh) {
|
||
var ret float64
|
||
return ret
|
||
}
|
||
return *o.CiHigh
|
||
}
|
||
|
||
// GetCiHighOk returns a tuple with the CiHigh field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetCiHighOk() (*float64, bool) {
|
||
if o == nil || IsNil(o.CiHigh) {
|
||
return nil, false
|
||
}
|
||
return o.CiHigh, true
|
||
}
|
||
|
||
// HasCiHigh returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasCiHigh() bool {
|
||
if o != nil && !IsNil(o.CiHigh) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetCiHigh gets a reference to the given float64 and assigns it to the CiHigh field.
|
||
func (o *BenchmarkLeaderRow) SetCiHigh(v float64) {
|
||
o.CiHigh = &v
|
||
}
|
||
|
||
// GetCiLow returns the CiLow field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetCiLow() float64 {
|
||
if o == nil || IsNil(o.CiLow) {
|
||
var ret float64
|
||
return ret
|
||
}
|
||
return *o.CiLow
|
||
}
|
||
|
||
// GetCiLowOk returns a tuple with the CiLow field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetCiLowOk() (*float64, bool) {
|
||
if o == nil || IsNil(o.CiLow) {
|
||
return nil, false
|
||
}
|
||
return o.CiLow, true
|
||
}
|
||
|
||
// HasCiLow returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasCiLow() bool {
|
||
if o != nil && !IsNil(o.CiLow) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetCiLow gets a reference to the given float64 and assigns it to the CiLow field.
|
||
func (o *BenchmarkLeaderRow) SetCiLow(v float64) {
|
||
o.CiLow = &v
|
||
}
|
||
|
||
// GetClaims returns the Claims field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetClaims() int64 {
|
||
if o == nil || IsNil(o.Claims) {
|
||
var ret int64
|
||
return ret
|
||
}
|
||
return *o.Claims
|
||
}
|
||
|
||
// GetClaimsOk returns a tuple with the Claims field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetClaimsOk() (*int64, bool) {
|
||
if o == nil || IsNil(o.Claims) {
|
||
return nil, false
|
||
}
|
||
return o.Claims, true
|
||
}
|
||
|
||
// HasClaims returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasClaims() bool {
|
||
if o != nil && !IsNil(o.Claims) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetClaims gets a reference to the given int64 and assigns it to the Claims field.
|
||
func (o *BenchmarkLeaderRow) SetClaims(v int64) {
|
||
o.Claims = &v
|
||
}
|
||
|
||
// GetEvidence returns the Evidence field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetEvidence() []string {
|
||
if o == nil || IsNil(o.Evidence) {
|
||
var ret []string
|
||
return ret
|
||
}
|
||
return o.Evidence
|
||
}
|
||
|
||
// GetEvidenceOk returns a tuple with the Evidence field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetEvidenceOk() ([]string, bool) {
|
||
if o == nil || IsNil(o.Evidence) {
|
||
return nil, false
|
||
}
|
||
return o.Evidence, true
|
||
}
|
||
|
||
// HasEvidence returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasEvidence() bool {
|
||
if o != nil && !IsNil(o.Evidence) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetEvidence gets a reference to the given []string and assigns it to the Evidence field.
|
||
func (o *BenchmarkLeaderRow) SetEvidence(v []string) {
|
||
o.Evidence = v
|
||
}
|
||
|
||
// GetFrom returns the From field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetFrom() string {
|
||
if o == nil || IsNil(o.From) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.From
|
||
}
|
||
|
||
// GetFromOk returns a tuple with the From field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetFromOk() (*string, bool) {
|
||
if o == nil || IsNil(o.From) {
|
||
return nil, false
|
||
}
|
||
return o.From, true
|
||
}
|
||
|
||
// HasFrom returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasFrom() bool {
|
||
if o != nil && !IsNil(o.From) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetFrom gets a reference to the given string and assigns it to the From field.
|
||
func (o *BenchmarkLeaderRow) SetFrom(v string) {
|
||
o.From = &v
|
||
}
|
||
|
||
// GetGap returns the Gap field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetGap() float64 {
|
||
if o == nil || IsNil(o.Gap) {
|
||
var ret float64
|
||
return ret
|
||
}
|
||
return *o.Gap
|
||
}
|
||
|
||
// GetGapOk returns a tuple with the Gap field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetGapOk() (*float64, bool) {
|
||
if o == nil || IsNil(o.Gap) {
|
||
return nil, false
|
||
}
|
||
return o.Gap, true
|
||
}
|
||
|
||
// HasGap returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasGap() bool {
|
||
if o != nil && !IsNil(o.Gap) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetGap gets a reference to the given float64 and assigns it to the Gap field.
|
||
func (o *BenchmarkLeaderRow) SetGap(v float64) {
|
||
o.Gap = &v
|
||
}
|
||
|
||
// GetMean returns the Mean field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetMean() float64 {
|
||
if o == nil || IsNil(o.Mean) {
|
||
var ret float64
|
||
return ret
|
||
}
|
||
return *o.Mean
|
||
}
|
||
|
||
// GetMeanOk returns a tuple with the Mean field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetMeanOk() (*float64, bool) {
|
||
if o == nil || IsNil(o.Mean) {
|
||
return nil, false
|
||
}
|
||
return o.Mean, true
|
||
}
|
||
|
||
// HasMean returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasMean() bool {
|
||
if o != nil && !IsNil(o.Mean) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetMean gets a reference to the given float64 and assigns it to the Mean field.
|
||
func (o *BenchmarkLeaderRow) SetMean(v float64) {
|
||
o.Mean = &v
|
||
}
|
||
|
||
// GetMeasured returns the Measured field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetMeasured() float64 {
|
||
if o == nil || IsNil(o.Measured) {
|
||
var ret float64
|
||
return ret
|
||
}
|
||
return *o.Measured
|
||
}
|
||
|
||
// GetMeasuredOk returns a tuple with the Measured field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetMeasuredOk() (*float64, bool) {
|
||
if o == nil || IsNil(o.Measured) {
|
||
return nil, false
|
||
}
|
||
return o.Measured, true
|
||
}
|
||
|
||
// HasMeasured returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasMeasured() bool {
|
||
if o != nil && !IsNil(o.Measured) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetMeasured gets a reference to the given float64 and assigns it to the Measured field.
|
||
func (o *BenchmarkLeaderRow) SetMeasured(v float64) {
|
||
o.Measured = &v
|
||
}
|
||
|
||
// GetMeasuredAt returns the MeasuredAt field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetMeasuredAt() time.Time {
|
||
if o == nil || IsNil(o.MeasuredAt) {
|
||
var ret time.Time
|
||
return ret
|
||
}
|
||
return *o.MeasuredAt
|
||
}
|
||
|
||
// GetMeasuredAtOk returns a tuple with the MeasuredAt field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetMeasuredAtOk() (*time.Time, bool) {
|
||
if o == nil || IsNil(o.MeasuredAt) {
|
||
return nil, false
|
||
}
|
||
return o.MeasuredAt, true
|
||
}
|
||
|
||
// HasMeasuredAt returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasMeasuredAt() bool {
|
||
if o != nil && !IsNil(o.MeasuredAt) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetMeasuredAt gets a reference to the given time.Time and assigns it to the MeasuredAt field.
|
||
func (o *BenchmarkLeaderRow) SetMeasuredAt(v time.Time) {
|
||
o.MeasuredAt = &v
|
||
}
|
||
|
||
// GetModel returns the Model field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetModel() string {
|
||
if o == nil || IsNil(o.Model) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.Model
|
||
}
|
||
|
||
// GetModelOk returns a tuple with the Model field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetModelOk() (*string, bool) {
|
||
if o == nil || IsNil(o.Model) {
|
||
return nil, false
|
||
}
|
||
return o.Model, true
|
||
}
|
||
|
||
// HasModel returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasModel() bool {
|
||
if o != nil && !IsNil(o.Model) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetModel gets a reference to the given string and assigns it to the Model field.
|
||
func (o *BenchmarkLeaderRow) SetModel(v string) {
|
||
o.Model = &v
|
||
}
|
||
|
||
// GetN returns the N field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetN() int64 {
|
||
if o == nil || IsNil(o.N) {
|
||
var ret int64
|
||
return ret
|
||
}
|
||
return *o.N
|
||
}
|
||
|
||
// GetNOk returns a tuple with the N field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetNOk() (*int64, bool) {
|
||
if o == nil || IsNil(o.N) {
|
||
return nil, false
|
||
}
|
||
return o.N, true
|
||
}
|
||
|
||
// HasN returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasN() bool {
|
||
if o != nil && !IsNil(o.N) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetN gets a reference to the given int64 and assigns it to the N field.
|
||
func (o *BenchmarkLeaderRow) SetN(v int64) {
|
||
o.N = &v
|
||
}
|
||
|
||
// GetProtocol returns the Protocol field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetProtocol() string {
|
||
if o == nil || IsNil(o.Protocol) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.Protocol
|
||
}
|
||
|
||
// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetProtocolOk() (*string, bool) {
|
||
if o == nil || IsNil(o.Protocol) {
|
||
return nil, false
|
||
}
|
||
return o.Protocol, true
|
||
}
|
||
|
||
// HasProtocol returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasProtocol() bool {
|
||
if o != nil && !IsNil(o.Protocol) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetProtocol gets a reference to the given string and assigns it to the Protocol field.
|
||
func (o *BenchmarkLeaderRow) SetProtocol(v string) {
|
||
o.Protocol = &v
|
||
}
|
||
|
||
// GetPublished returns the Published field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetPublished() float64 {
|
||
if o == nil || IsNil(o.Published) {
|
||
var ret float64
|
||
return ret
|
||
}
|
||
return *o.Published
|
||
}
|
||
|
||
// GetPublishedOk returns a tuple with the Published field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetPublishedOk() (*float64, bool) {
|
||
if o == nil || IsNil(o.Published) {
|
||
return nil, false
|
||
}
|
||
return o.Published, true
|
||
}
|
||
|
||
// HasPublished returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasPublished() bool {
|
||
if o != nil && !IsNil(o.Published) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetPublished gets a reference to the given float64 and assigns it to the Published field.
|
||
func (o *BenchmarkLeaderRow) SetPublished(v float64) {
|
||
o.Published = &v
|
||
}
|
||
|
||
// GetRun returns the Run field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetRun() string {
|
||
if o == nil || IsNil(o.Run) {
|
||
var ret string
|
||
return ret
|
||
}
|
||
return *o.Run
|
||
}
|
||
|
||
// GetRunOk returns a tuple with the Run field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetRunOk() (*string, bool) {
|
||
if o == nil || IsNil(o.Run) {
|
||
return nil, false
|
||
}
|
||
return o.Run, true
|
||
}
|
||
|
||
// HasRun returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasRun() bool {
|
||
if o != nil && !IsNil(o.Run) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetRun gets a reference to the given string and assigns it to the Run field.
|
||
func (o *BenchmarkLeaderRow) SetRun(v string) {
|
||
o.Run = &v
|
||
}
|
||
|
||
// GetRuns returns the Runs field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetRuns() []string {
|
||
if o == nil || IsNil(o.Runs) {
|
||
var ret []string
|
||
return ret
|
||
}
|
||
return o.Runs
|
||
}
|
||
|
||
// GetRunsOk returns a tuple with the Runs field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetRunsOk() ([]string, bool) {
|
||
if o == nil || IsNil(o.Runs) {
|
||
return nil, false
|
||
}
|
||
return o.Runs, true
|
||
}
|
||
|
||
// HasRuns returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasRuns() bool {
|
||
if o != nil && !IsNil(o.Runs) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetRuns gets a reference to the given []string and assigns it to the Runs field.
|
||
func (o *BenchmarkLeaderRow) SetRuns(v []string) {
|
||
o.Runs = v
|
||
}
|
||
|
||
// GetSpread returns the Spread field value if set, zero value otherwise.
|
||
func (o *BenchmarkLeaderRow) GetSpread() float64 {
|
||
if o == nil || IsNil(o.Spread) {
|
||
var ret float64
|
||
return ret
|
||
}
|
||
return *o.Spread
|
||
}
|
||
|
||
// GetSpreadOk returns a tuple with the Spread field value if set, nil otherwise
|
||
// and a boolean to check if the value has been set.
|
||
func (o *BenchmarkLeaderRow) GetSpreadOk() (*float64, bool) {
|
||
if o == nil || IsNil(o.Spread) {
|
||
return nil, false
|
||
}
|
||
return o.Spread, true
|
||
}
|
||
|
||
// HasSpread returns a boolean if a field has been set.
|
||
func (o *BenchmarkLeaderRow) HasSpread() bool {
|
||
if o != nil && !IsNil(o.Spread) {
|
||
return true
|
||
}
|
||
|
||
return false
|
||
}
|
||
|
||
// SetSpread gets a reference to the given float64 and assigns it to the Spread field.
|
||
func (o *BenchmarkLeaderRow) SetSpread(v float64) {
|
||
o.Spread = &v
|
||
}
|
||
|
||
func (o BenchmarkLeaderRow) MarshalJSON() ([]byte, error) {
|
||
toSerialize, err := o.ToMap()
|
||
if err != nil {
|
||
return []byte{}, err
|
||
}
|
||
return json.Marshal(toSerialize)
|
||
}
|
||
|
||
func (o BenchmarkLeaderRow) ToMap() (map[string]interface{}, error) {
|
||
toSerialize := map[string]interface{}{}
|
||
if !IsNil(o.CiHigh) {
|
||
toSerialize["ciHigh"] = o.CiHigh
|
||
}
|
||
if !IsNil(o.CiLow) {
|
||
toSerialize["ciLow"] = o.CiLow
|
||
}
|
||
if !IsNil(o.Claims) {
|
||
toSerialize["claims"] = o.Claims
|
||
}
|
||
if !IsNil(o.Evidence) {
|
||
toSerialize["evidence"] = o.Evidence
|
||
}
|
||
if !IsNil(o.From) {
|
||
toSerialize["from"] = o.From
|
||
}
|
||
if !IsNil(o.Gap) {
|
||
toSerialize["gap"] = o.Gap
|
||
}
|
||
if !IsNil(o.Mean) {
|
||
toSerialize["mean"] = o.Mean
|
||
}
|
||
if !IsNil(o.Measured) {
|
||
toSerialize["measured"] = o.Measured
|
||
}
|
||
if !IsNil(o.MeasuredAt) {
|
||
toSerialize["measuredAt"] = o.MeasuredAt
|
||
}
|
||
if !IsNil(o.Model) {
|
||
toSerialize["model"] = o.Model
|
||
}
|
||
if !IsNil(o.N) {
|
||
toSerialize["n"] = o.N
|
||
}
|
||
if !IsNil(o.Protocol) {
|
||
toSerialize["protocol"] = o.Protocol
|
||
}
|
||
if !IsNil(o.Published) {
|
||
toSerialize["published"] = o.Published
|
||
}
|
||
if !IsNil(o.Run) {
|
||
toSerialize["run"] = o.Run
|
||
}
|
||
if !IsNil(o.Runs) {
|
||
toSerialize["runs"] = o.Runs
|
||
}
|
||
if !IsNil(o.Spread) {
|
||
toSerialize["spread"] = o.Spread
|
||
}
|
||
|
||
for key, value := range o.AdditionalProperties {
|
||
toSerialize[key] = value
|
||
}
|
||
|
||
return toSerialize, nil
|
||
}
|
||
|
||
func (o *BenchmarkLeaderRow) UnmarshalJSON(data []byte) (err error) {
|
||
varBenchmarkLeaderRow := _BenchmarkLeaderRow{}
|
||
|
||
err = json.Unmarshal(data, &varBenchmarkLeaderRow)
|
||
|
||
if err != nil {
|
||
return err
|
||
}
|
||
|
||
*o = BenchmarkLeaderRow(varBenchmarkLeaderRow)
|
||
|
||
additionalProperties := make(map[string]interface{})
|
||
|
||
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
||
delete(additionalProperties, "ciHigh")
|
||
delete(additionalProperties, "ciLow")
|
||
delete(additionalProperties, "claims")
|
||
delete(additionalProperties, "evidence")
|
||
delete(additionalProperties, "from")
|
||
delete(additionalProperties, "gap")
|
||
delete(additionalProperties, "mean")
|
||
delete(additionalProperties, "measured")
|
||
delete(additionalProperties, "measuredAt")
|
||
delete(additionalProperties, "model")
|
||
delete(additionalProperties, "n")
|
||
delete(additionalProperties, "protocol")
|
||
delete(additionalProperties, "published")
|
||
delete(additionalProperties, "run")
|
||
delete(additionalProperties, "runs")
|
||
delete(additionalProperties, "spread")
|
||
o.AdditionalProperties = additionalProperties
|
||
}
|
||
|
||
return err
|
||
}
|
||
|
||
type NullableBenchmarkLeaderRow struct {
|
||
value *BenchmarkLeaderRow
|
||
isSet bool
|
||
}
|
||
|
||
func (v NullableBenchmarkLeaderRow) Get() *BenchmarkLeaderRow {
|
||
return v.value
|
||
}
|
||
|
||
func (v *NullableBenchmarkLeaderRow) Set(val *BenchmarkLeaderRow) {
|
||
v.value = val
|
||
v.isSet = true
|
||
}
|
||
|
||
func (v NullableBenchmarkLeaderRow) IsSet() bool {
|
||
return v.isSet
|
||
}
|
||
|
||
func (v *NullableBenchmarkLeaderRow) Unset() {
|
||
v.value = nil
|
||
v.isSet = false
|
||
}
|
||
|
||
func NewNullableBenchmarkLeaderRow(val *BenchmarkLeaderRow) *NullableBenchmarkLeaderRow {
|
||
return &NullableBenchmarkLeaderRow{value: val, isSet: true}
|
||
}
|
||
|
||
func (v NullableBenchmarkLeaderRow) MarshalJSON() ([]byte, error) {
|
||
return json.Marshal(v.value)
|
||
}
|
||
|
||
func (v *NullableBenchmarkLeaderRow) UnmarshalJSON(src []byte) error {
|
||
v.isSet = true
|
||
return json.Unmarshal(src, &v.value)
|
||
}
|