Closed kellenyangs closed 1 year ago
如下列表,我想要排除createAt属性的序列化以及反序列化
createAt
struct Article { @Codec var title: String? @Codec var info: String? @Codec var desc: String? @Codec var createAt: String? }
@Codec(transformer: TransformOf<String?, Any>(fromJSON: { _ in nil }, toJSON: { _ in nil }))
或者实现TransformType做一个封装
如下列表,我想要排除
createAt
属性的序列化以及反序列化