             return nil
         }
         self.key = key
-        
+
         guard let name = json["name"] as? String else {
             return nil
         }
         self.name = name
-        
+
         guard let teamNumber = json["team_number"] as? Int else {
             return nil
         }
         self.teamNumber = teamNumber
-        
+
         guard let rookieYear = json["rookie_year"] as? Int else {
             return nil
         }
         self.rookieYear = rookieYear
-        
+
         self.address = json["address"] as? String
         self.city = json["city"] as? String
         self.country = json["country"] as? String

            return nil
        }
        self.number = number
        
        guard let pick = json["pick"] as? Int else {
            return nil
        }
        self.pick = pick
        
        self.name = json["name"] as? String
        
        if let backupJSON = json["backup"] as? [String: Any] {
            self.backup = TBAAllianceBackup(json: backupJSON)
        }

    init?(json: [String: Any]) {
        self.numTeams = json["num_teams"] as? Int
        self.status = json["status"] as? String

        if let rankingJSON = json["ranking"] as? [String: Any] {
            self.ranking = TBAEventRanking(json: rankingJSON)
        }

        if let sortOrdersJSON = json["sort_order_info"] as? [[String: Any]] {
            self.sortOrder = sortOrdersJSON.compactMap({ (sortOrderJSON) -> TBAEventRankingSortOrder? in
                return TBAEventRankingSortOrder(json: sortOrderJSON)
            })
        }
    }

}

public struct TBAEventStatusAlliance: TBAModel {

    public var number: Int
    public var pick: Int
    public var name: String?
