DecodableSerializer
public class DecodableSerializer : JobInfoSerializer
JSONEncoder
and JSONDecoder
to serialize JobInfo
-
Init decodable with custom
JSONEncoder
andJSONDecoder
Declaration
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