DatabaseEncoder
open class DatabaseEncoder
Class used to construct a dictionary [String: Any] from a Model
-
Encode a Encodable type to a dictionary [String: Any]
Declaration
Swift
open func encode<T>(_ value: T, dateEncodingStrategy: DateEncodingFormat) throws -> [String : Any] where T : Encodable