14 lines
343 B
Swift
14 lines
343 B
Swift
public struct ProductResponse: Codable, ObjectDebugger {
|
|
public var product: Product?
|
|
public var code: String?
|
|
public var status: Int? // or Bool, depending on your needs
|
|
public var statusVerbose: String?
|
|
|
|
private enum CodingKeys: String, CodingKey {
|
|
case product
|
|
case code
|
|
case status
|
|
case statusVerbose = "status_verbose"
|
|
}
|
|
}
|