Skip to content

Instantly share code, notes, and snippets.

View homerblr's full-sized avatar
👨‍🍳
Swift micro chef

Mikhail Kisly homerblr

👨‍🍳
Swift micro chef
View GitHub Profile
struct NBLLiveBoxScoreTeamTotalCoverAPIModel: Codable {
let team: BoxScoreTeamTypeEnum?
let players: [NBLLiveBoxScoreAPIModel]?
enum BoxScoreTeamTypeEnum: Codable {
case object(NBLLiveBoxScoreTeamAPIModel?)
case array(Array<NBLLiveBoxScoreTeamAPIModel>)
init(from decoder: Decoder) throws {
let container = try decoder.singleValueContainer()