mirror of
https://github.com/hanzo-swift/sdk.git
synced 2026-10-30 20:43:50 +00:00
36 lines
945 B
Swift
36 lines
945 B
Swift
//
|
|
// SummaryView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct SummaryView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** DocTypes is how many DocTypes the org has defined. */
|
|
public var doctypes: Int64?
|
|
/** Documents is how many documents exist across them. */
|
|
public var documents: Int64?
|
|
|
|
public init(doctypes: Int64? = nil, documents: Int64? = nil) {
|
|
self.doctypes = doctypes
|
|
self.documents = documents
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case doctypes
|
|
case documents
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(doctypes, forKey: .doctypes)
|
|
try container.encodeIfPresent(documents, forKey: .documents)
|
|
}
|
|
}
|
|
|