Decoder

extension Decoder
  • Undocumented

    Declaration

    Swift

    public func decodeSingle<T>(as type: T.Type = T.self) throws -> T where T : Decodable
  • Undocumented

    Declaration

    Swift

    public func decode<T>(_ key: String, as type: T.Type = T.self) throws -> T where T : Decodable
  • Undocumented

    Declaration

    Swift

    public func decode<T, K>(_ key: K, as type: T.Type = T.self) throws -> T where T : Decodable, K : CodingKey
  • Undocumented

    Declaration

    Swift

    public func decodeIf<T>(_ key: String, as type: T.Type = T.self) throws -> T? where T : Decodable
  • Undocumented

    Declaration

    Swift

    public func decodeIf<T, K>(_ key: K, as type: T.Type = T.self) throws -> T? where T : Decodable, K : CodingKey
  • Undocumented

    Declaration

    Swift

    public func decode<F>(_ key: String, using formatter: F) throws -> Date where F : AnyDateFormatter
  • Undocumented

    Declaration

    Swift

    public func decode<K, F>(_ key: K, using formatter: F) throws -> Date where K : CodingKey, F : AnyDateFormatter

JSON

  • Undocumented

    Declaration

    Swift

    public func jsonSingle() throws -> JSON
  • Undocumented

    Declaration

    Swift

    public func json(_ key: String) throws -> JSON
  • Undocumented

    Declaration

    Swift

    public func json<K>(_ key: K) throws -> JSON where K : CodingKey
  • Undocumented

    Declaration

    Swift

    public func jsonIf(_ key: String) throws -> JSON?
  • Undocumented

    Declaration

    Swift

    public func jsonIf<K>(_ key: K) throws -> JSON? where K : CodingKey

Value

  • Undocumented

    Declaration

    Swift

    public func valueSingle<T>(as type: T.Type = T.self) throws -> T where T : Decodable
  • Undocumented

    Declaration

    Swift

    public func value<T>(_ key: String, as type: T.Type = T.self) throws -> T where T : Decodable
  • Undocumented

    Declaration

    Swift

    public func value<T, K>(_ key: K, as type: T.Type = T.self) throws -> T where T : Decodable, K : CodingKey
  • Undocumented

    Declaration

    Swift

    public func valueIf<T>(_ key: String, as type: T.Type = T.self) throws -> T? where T : Decodable
  • Undocumented

    Declaration

    Swift

    public func valueIf<T, K>(_ key: K, as type: T.Type = T.self) throws -> T? where T : Decodable, K : CodingKey