-
Notifications
You must be signed in to change notification settings - Fork 9
/
StateNonFungibleDataResponse.swift
51 lines (41 loc) · 1.78 KB
/
StateNonFungibleDataResponse.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
48
49
50
51
//
// StateNonFungibleDataResponse.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif
@available(*, deprecated, renamed: "GatewayAPI.StateNonFungibleDataResponse")
public typealias StateNonFungibleDataResponse = GatewayAPI.StateNonFungibleDataResponse
extension GatewayAPI {
public struct StateNonFungibleDataResponse: 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 nonFungibleIdType: NonFungibleIdType
public private(set) var nonFungibleIds: [StateNonFungibleDetailsResponseItem]
public init(ledgerState: LedgerState, resourceAddress: String, nonFungibleIdType: NonFungibleIdType, nonFungibleIds: [StateNonFungibleDetailsResponseItem]) {
self.ledgerState = ledgerState
self.resourceAddress = resourceAddress
self.nonFungibleIdType = nonFungibleIdType
self.nonFungibleIds = nonFungibleIds
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case ledgerState = "ledger_state"
case resourceAddress = "resource_address"
case nonFungibleIdType = "non_fungible_id_type"
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(nonFungibleIdType, forKey: .nonFungibleIdType)
try container.encode(nonFungibleIds, forKey: .nonFungibleIds)
}
}
}