let promotionId: Int!
let promotionName: String!
let promotionValue: Float!
let promotionIndex: String!
var dictionary: [String: Any] {
return ["quotationId": quotationId ?? 0,
"promotionId": promotionId ?? 0,
"promotionName": promotionName ?? "",
"promotionValue": promotionValue ?? 0.0,
"promotionIndex": promotionIndex ?? "",
]
}
}
Its is possible to create this type of struct class
nope, just use classes
Обсуждают сегодня