GTRKTypeConverter

struct GTRKTypeConverter

A struct that provides methods to convert between dictionary, JSON and string values.

Available methods:

  • toDictionary(fromJSON:)
  • toJSON(fromDictionary:)
  • toString(fromJSON:)
  • Undocumented

    Declaration

    Swift

    static let shared: GTRKTypeConverter
  • Undocumented

    Declaration

    Swift

    func toDictionary(fromJSON json: Data) -> [String : Any]?
  • Undocumented

    Declaration

    Swift

    func toJSON(fromDictionary dictionary: [String : Any]) -> Data?
  • Undocumented

    Declaration

    Swift

    func toString(fromJson json: Data) -> String?