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

46 lines
1.2 KiB
Swift

//
// LicensingRevocationEntry.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct LicensingRevocationEntry: Sendable, Codable, ParameterConvertible, Hashable {
public var at: Int64?
public var by: String?
public var reason: String?
public var scope: String?
public var value: String?
public init(at: Int64? = nil, by: String? = nil, reason: String? = nil, scope: String? = nil, value: String? = nil) {
self.at = at
self.by = by
self.reason = reason
self.scope = scope
self.value = value
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case at
case by
case reason
case scope
case value
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(at, forKey: .at)
try container.encodeIfPresent(by, forKey: .by)
try container.encodeIfPresent(reason, forKey: .reason)
try container.encodeIfPresent(scope, forKey: .scope)
try container.encodeIfPresent(value, forKey: .value)
}
}