CustomCoders
public struct CustomCoders
Use instances of this struct to pass customized JSON and Property List
encoders and decoders to the various methods of the GTStorable
protocol.
-
Initialize and customize a
JSONEncoder
object to be used for encoding items conforming toGTStorable
protocol.Declaration
Swift
public var jsonEncoder: JSONEncoder?
-
Initialize and customize a
JSONDecoder
object to be used for decoding items conforming toGTStorable
protocol.Declaration
Swift
public var jsonDecoder: JSONDecoder?
-
Initialize and customize a
PropertyListEncoder
object to be used for encoding items conforming toGTStorable
protocol.Declaration
Swift
public var plistEncoder: PropertyListEncoder?
-
Initialize and customize a
PropertyListDecoder
object to be used for encoding items conforming toGTStorable
protocol.Declaration
Swift
public var plistDecoder: PropertyListDecoder?