Decodable

public extension Decodable
  • Self type decoded from String

    Throws

    JSON Decode failure error

    Declaration

    Swift

    static func decode(from string: String) throws -> Self?

    Parameters

    string

    the string representation

    Return Value

    The Self type on successful decode