DatabaseDecoder

open class DatabaseDecoder

Class used to construct a Model from a row in the database

  • Decode from a dictionary [String: Any] to a Decodable type

    Declaration

    Swift

    open func decode<T : Decodable>(_ type: T.Type, _ values: [String : Any?]) throws -> T