Encodable

public extension Encodable
  • Returns the dictionary object as a JSON represenation of current Encodable object, where keyEncodingStrategy was set toconvertToSnakeCase

    Declaration

    Swift

    var bodyDict: [String : Any] { get }
  • Returns the dictionary object as a JSON represenation of current Encodable object, where keyEncodingStrategy was set touseDefaultKeys

    Declaration

    Swift

    var bodyDictWithDefaultKeys: [String : Any] { get }