Files
sdk/Sources/Hanzo/Models/ExperimentList.swift

36 lines
891 B
Swift

//
// ExperimentList.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ExperimentList: Sendable, Codable, ParameterConvertible, Hashable {
/** Data is the org's experiments, ordered by project then id. */
public var data: [Trial]?
/** Total is how many rows Data holds. */
public var total: Int64?
public init(data: [Trial]? = nil, total: Int64? = nil) {
self.data = data
self.total = total
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case data
case total
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(data, forKey: .data)
try container.encodeIfPresent(total, forKey: .total)
}
}