We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why Class in Swift can not decode by Himotoki? such as : class Hello: Decodable { var text: String? }
static func decode(_ e: Extractor) throws -> UserModel { return try UserModel ( text : e <| "text", ) }
The text was updated successfully, but these errors were encountered:
Classes don't have memberwise initalizers by default. You have to implement an initializer for your class and then you can call it in decode.
decode
Sorry, something went wrong.
Thanks @dcaunt!
No branches or pull requests
Why Class in Swift can not decode by Himotoki?
such as :
class Hello: Decodable {
var text: String?
}
static func decode(_ e: Extractor) throws -> UserModel {
return try UserModel (
text : e <| "text",
)
}
The text was updated successfully, but these errors were encountered: