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
-
Declaration
Swift
public init(wrappedValue value: Coder.CodableValue?)
-
Declaration
Swift
public var wrappedValue: Coder.CodableValue? { get set }
-
Declaration
Swift
public var anyValue: Any { get }
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws