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
struct Article { @codec var type: String? @codec var title: String? @codec var info: Info? @codec var desc: String? @codec var createAt: String? }
比如 info 的内容取决于 type的类型
The text was updated successfully, but these errors were encountered:
本库只是Codable Encode/Decode一个中转处理层,没有添加额外能力。 这个例子你可以使用计算属性。 建议先了解Codable后再使用本库。
Sorry, something went wrong.
No branches or pull requests
struct Article {
@codec var type: String?
@codec var title: String?
@codec var info: Info?
@codec var desc: String?
@codec var createAt: String?
}
比如 info 的内容取决于 type的类型
The text was updated successfully, but these errors were encountered: