Try this
if let app = try? JSONDecoder().decode(.decode(ApplicationToken.self, from: data) {
let token = Application(token: app)
print(token)
} else {
print("didn't work")
}
Token.self changed to ApplicationToken.self
Topic:
App & System Services
SubTopic:
General
Tags: