-
Notifications
You must be signed in to change notification settings - Fork 9
/
StateNonFungibleIdsResponse.swift
47 lines (37 loc) · 1.47 KB
/
StateNonFungibleIdsResponse.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
44
45
46
47
//
// StateNonFungibleIdsResponse.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif
@available(*, deprecated, renamed: "GatewayAPI.StateNonFungibleIdsResponse")
public typealias StateNonFungibleIdsResponse = GatewayAPI.StateNonFungibleIdsResponse
extension GatewayAPI {
public struct StateNonFungibleIdsResponse: Codable, Hashable {
public private(set) var ledgerState: LedgerState
/** Bech32m-encoded human readable version of the address. */
public private(set) var resourceAddress: String
public private(set) var nonFungibleIds: NonFungibleIdsCollection
public init(ledgerState: LedgerState, resourceAddress: String, nonFungibleIds: NonFungibleIdsCollection) {
self.ledgerState = ledgerState
self.resourceAddress = resourceAddress
self.nonFungibleIds = nonFungibleIds
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case ledgerState = "ledger_state"
case resourceAddress = "resource_address"
case nonFungibleIds = "non_fungible_ids"
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(ledgerState, forKey: .ledgerState)
try container.encode(resourceAddress, forKey: .resourceAddress)
try container.encode(nonFungibleIds, forKey: .nonFungibleIds)
}
}
}