Decodable

protocol Decodable
  • Prints the values and returns a dictionary of the values

    Allows the printing of the Decodable values and returns a dictionary of the values.

    Declaration

    Swift

    @discardableResult
    public func printValues(_ printValues: Bool = false) -> [String : Any]

    Parameters

    printValues

    Defaulrs to false. Whenn true, the values are printed to stdout.

    Return Value

    A dictionary of keys and values for the contents of the model.