Decoder

extension Decoder

Decodable

  • 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

Any

  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

Date

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

Subscript

  • Undocumented

    Declaration

    Swift

    public subscript<T>(stringKeys: [String]) -> T? where T : Decodable { get }
  • Undocumented

    Declaration

    Swift

    public subscript<T>(stringKeys: String...) -> T? where T : Decodable { get }
  • Undocumented

    Declaration

    Swift

    public subscript<T, K>(codingKeys: [K]) -> T? where T : Decodable, K : CodingKey { get }
  • Undocumented

    Declaration

    Swift

    public subscript<T, K>(codingKeys: K...) -> T? where T : Decodable, K : CodingKey { get }
  • Undocumented

    Declaration

    Swift

    public subscript<T>(stringKeys: [String]) -> T? { get }
  • Undocumented

    Declaration

    Swift

    public subscript<T>(stringKeys: String...) -> T? { get }
  • Undocumented

    Declaration

    Swift

    public subscript<T, K>(codingKeys: [K]) -> T? where K : CodingKey { get }
  • Undocumented

    Declaration

    Swift

    public subscript<T, K>(codingKeys: K...) -> T? where K : CodingKey { get }

Safe

  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    public func decodeSafe<T>(_ stringKeys: [String], as type: T.Type = T.self, throws: Bool = false) throws -> T? where T : Decodable
  • Undocumented

    Declaration

    Swift

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

    Declaration

    Swift

    public func decodeSafe<T, K>(_ codingKeys: [K], as type: T.Type = T.self, throws: Bool = false) throws -> T? where T : Decodable, K : CodingKey

SafeAny

  • Undocumented

    Declaration

    Swift

    public func decodeSafeAny<T>(_ stringKeys: String..., as type: T.Type = T.self, throws: Bool = false) throws -> T?
  • Undocumented

    Declaration

    Swift

    public func decodeSafeAny<T>(_ stringKeys: [String], as type: T.Type = T.self, throws: Bool = false) throws -> T?
  • Undocumented

    Declaration

    Swift

    public func decodeSafeAny<T, K>(_ codingKeys: K..., as type: T.Type = T.self, throws: Bool = false) throws -> T? where K : CodingKey
  • Undocumented

    Declaration

    Swift

    public func decodeSafeAny<T, K>(_ codingKeys: [K], as type: T.Type = T.self, throws: Bool = false) throws -> T? where K : CodingKey