-
Notifications
You must be signed in to change notification settings - Fork 9
/
StateKeyValueStoreKeysResponseItem.swift
43 lines (33 loc) · 1.22 KB
/
StateKeyValueStoreKeysResponseItem.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// StateKeyValueStoreKeysResponseItem.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif
@available(*, deprecated, renamed: "GatewayAPI.StateKeyValueStoreKeysResponseItem")
typealias StateKeyValueStoreKeysResponseItem = GatewayAPI.StateKeyValueStoreKeysResponseItem
extension GatewayAPI {
struct StateKeyValueStoreKeysResponseItem: Codable, Hashable {
private(set) var key: ScryptoSborValue
/** The most recent state version underlying object was modified at. */
private(set) var lastUpdatedAtStateVersion: Int64
init(key: ScryptoSborValue, lastUpdatedAtStateVersion: Int64) {
self.key = key
self.lastUpdatedAtStateVersion = lastUpdatedAtStateVersion
}
enum CodingKeys: String, CodingKey, CaseIterable {
case key
case lastUpdatedAtStateVersion = "last_updated_at_state_version"
}
// Encodable protocol methods
func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(key, forKey: .key)
try container.encode(lastUpdatedAtStateVersion, forKey: .lastUpdatedAtStateVersion)
}
}
}