mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
61 lines
1.9 KiB
Swift
61 lines
1.9 KiB
Swift
//
|
|
// LegalTemplate.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct LegalTemplate: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var body: String?
|
|
public var category: String?
|
|
public var counselReview: Bool?
|
|
public var fields: [Field]?
|
|
public var id: String?
|
|
public var origin: String?
|
|
public var title: String?
|
|
public var version: Int64?
|
|
|
|
public init(body: String? = nil, category: String? = nil, counselReview: Bool? = nil, fields: [Field]? = nil, id: String? = nil, origin: String? = nil, title: String? = nil, version: Int64? = nil) {
|
|
self.body = body
|
|
self.category = category
|
|
self.counselReview = counselReview
|
|
self.fields = fields
|
|
self.id = id
|
|
self.origin = origin
|
|
self.title = title
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case body
|
|
case category
|
|
case counselReview
|
|
case fields
|
|
case id
|
|
case origin
|
|
case title
|
|
case version
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(body, forKey: .body)
|
|
try container.encodeIfPresent(category, forKey: .category)
|
|
try container.encodeIfPresent(counselReview, forKey: .counselReview)
|
|
try container.encodeIfPresent(fields, forKey: .fields)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(origin, forKey: .origin)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension LegalTemplate: Identifiable {}
|