Following options can be provided in the @Codable macro to allow customization for generated implementation:
[x] @CodingKeys: The strategy to use to generate CodingKey value from property name. i.e. by default property name will be used as is, with option to convert to camel-case, snake-case etc.
[x] @IgnoreCodingInitialized: Whether to ignore initialized mutable stored properties in decoding/encoding (immutable stored properties have to be ignored).
[x] Adding property macros i.e. @CodedIn, @CodedAt etc. will indicate exception for specific stored property and the attached property will be considered in decoding/encoding .
[x] Property level control will also be provided with new macro @IgnoreCoding.
[x] Property level decoding/encoding specific control will also be provided with new macros @IgnoreDecoding and @IgnoreEncoding.
Following options can be provided in the
@Codable
macro to allow customization for generated implementation:@CodingKeys
: The strategy to use to generateCodingKey
value from property name. i.e. by default property name will be used as is, with option to convert to camel-case, snake-case etc.@IgnoreCodingInitialized
: Whether to ignore initialized mutable stored properties in decoding/encoding (immutable stored properties have to be ignored).@CodedIn
,@CodedAt
etc. will indicate exception for specific stored property and the attached property will be considered in decoding/encoding .@IgnoreCoding
.@IgnoreDecoding
and@IgnoreEncoding
.