JSONDecoder

extension JSONDecoder
  • Undocumented

    Declaration

    Swift

    func decode<T>(_ type: T.Type, from data: Data, keyPath: String? = nil) throws -> T where T : Decodable
  • Undocumented

    Declaration

    Swift

    func decode<T>(_ type: T.Type, from data: Data, keyPath: String? = nil) throws -> T where T : Decodable, T : Encodable, T : ModelObject
  • Undocumented

    Declaration

    Swift

    func decode<T>(_ type: [T].Type, from data: Data, keyPath: String? = nil) throws -> [T] where T : Decodable, T : Encodable, T : ModelObject
  • Undocumented

    Declaration

    Swift

    func decode<T>(type: T.Type, from json: Any) throws -> T where T : Decodable, T : Encodable, T : ModelObject