Encodable
public extension Encodable
-
Converts to dictionary
[String: Any]
type.Used to satisfy limitations of current BTHTTP implementation.
Declaration
Swift
func toDictionary(_ encoder: JSONEncoder = JSONEncoder()) throws -> [String : Any]