Files

44 lines
1.2 KiB
Swift

//
// Written.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Written: Sendable, Codable, ParameterConvertible, Hashable {
/** ID is the record's id — the one supplied, or the one minted when the caller supplied none. */
public var id: String?
/** Kind is the section written. */
public var kind: String?
/** Updated is when it was written, unix milliseconds. */
public var updated: Int64?
public init(id: String? = nil, kind: String? = nil, updated: Int64? = nil) {
self.id = id
self.kind = kind
self.updated = updated
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case id
case kind
case updated
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(updated, forKey: .updated)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension Written: Identifiable {}