Hey !
Today I wish declare a variable in a structure but we need to declare a type and sometimes value is an Integer and sometimes is a String
import Foundation
struct PlayerData: Decodable {
var country: String
var name: String
var prestige: Int
var bank: Int
var rank: Int
var experiencePercent: Float
var stats: [PlayerStats]
}
struct PlayerStats: Decodable {
var name: String
var value: // here String or Int
}
thanks for your responses and have a nice day
Selecting any option will automatically load the page