OptionalCustomCoding

@propertyWrapper
public struct OptionalCustomCoding<Coder> where Coder : CustomCoder
extension OptionalCustomCoding: JMESPropertyWrapper
extension OptionalCustomCoding: OptionalCustomCodingWrapper
extension OptionalCustomCoding: Decodable where Coder: CustomDecoder
extension OptionalCustomCoding: Encodable where Coder: CustomEncoder

Property wrapper that applies a custom encoder and decoder to its wrapped optional value

Available where Coder: CustomDecoder

  • Declaration

    Swift

    public init(from decoder: Decoder) throws

Available where Coder: CustomEncoder

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws