func (o *SparseStatsQuery) ToPlain() elemental.PlainIdentifiable {

	out := NewStatsQuery()
	if o.Descending != nil {
		out.Descending = *o.Descending
	}
	if o.Fields != nil {
		out.Fields = *o.Fields
	}
	if o.Filter != nil {
		out.Filter = *o.Filter
	}
	if o.Groups != nil {
		out.Groups = *o.Groups
	}
	if o.Limit != nil {
		out.Limit = *o.Limit
	}
	if o.Measurement != nil {
		out.Measurement = *o.Measurement
	}
	if o.Offset != nil {
		out.Offset = *o.Offset
	}
	if o.Results != nil {
		out.Results = *o.Results
	}

	return out
}
// ToPlain returns the plain version of the sparse model.
ToPlain returns the plain version of the sparse model.
// ToPlain returns the plain version of the sparse model .
func (o *SparseStatsQuery) ToPlain() elemental.PlainIdentifiable {
	out := NewStatsQuery()
	if o.Descending != nil {
		out.Descending = *o.Descending
	}
	if o.Fields != nil {
		out.Fields = *o.Fields
	}
	if o.Filter != nil {
		out.Filter = *o.Filter
	}
	if o.Groups != nil {
		out.Groups = *o.Groups
	}
	if o.Limit != nil {
		out.Limit = *o.Limit
	}
	if o.Measurement != nil {
		out.Measurement = *o.Measurement
	}
	if o.Offset != nil {
		out.Offset = *o.Offset
	}
	if o.Results != nil {
		out.Results = *o.Results
	}
	return out
}
func ( o * SparseStatsQuery ) ToPlain ( ) elemental . PlainIdentifiable { out := NewStatsQuery ( ) if o . Descending != nil { out . Descending = * o . Descending } if o . Fields != nil { out . Fields = * o . Fields } if o . Filter != nil { out . Filter = * o . Filter } if o . Groups != nil { out . Groups = * o . Groups } if o . Limit != nil { out . Limit = * o . Limit } if o . Measurement != nil { out . Measurement = * o . Measurement } if o . Offset != nil { out . Offset = * o . Offset } if o . Results != nil { out . Results = * o . Results } return out }
ToPlain returns the plain version of the sparse model.
ToPlain returns the plain version of the sparse model .