Slide 4
Slide 4 text
static func rejectNilHeaders(_ source: [String: Any?]) -> [String: String] {
var destination = [String: String]()
for (key, nillableValue) in source {
if let value: Any = nillableValue {
destination[key] = "\(value)"
}
}
return destination
}