DecodableSerializer
public class DecodableSerializer : JobInfoSerializer
JSONEncoder and JSONDecoder to serialize JobInfo
-
Init decodable with custom
JSONEncoderandJSONDecoderDeclaration
Swift
public init(encoder: JSONEncoder = JSONEncoder(), decoder: JSONDecoder = JSONDecoder()) -
Declaration
Swift
public func serialize(info: JobInfo) throws -> String -
Declaration
Swift
public func deserialize(json: String) throws -> JobInfo
DecodableSerializer Class Reference