Dictionary

struct Dictionary<Key, Value> where Key : Hashable
  • Use this dictionary to decode the given object type.

    Declaration

    Swift

    public func rsd_decode<T>(_ type: T.Type, bundle: Bundle? = nil) throws -> T where T : Decodable
  • Returns a Dictionary containing the results of transforming the keys over self where the returned values are the mapped keys.

    Declaration

    Swift

    public func mapKeys<T>(_ transform: (Key) -> T) -> [T : Value] where T : Hashable

    Parameters

    transform

    The function used to transform the input keys into the output key

    Return Value

    A dictionary of key/value pairs.

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws