JSONCustomDateFormatterDecodable
public protocol JSONCustomDateFormatterDecodable: JSONDecodable
JSONDecodable child protocol that allows the user to define a cust dateFormatter. There is no default dateFormatter defined here so any object conforming to the protocol will need to add this
-
Customizeable date formatter. This will need to be implemented by conforming objects
Declaration
Swift
static var dateFormatter: DateFormatter
-
jsonDecoder
Extension method- return JSONDecoder with custom date formatter that is user definable
Declaration
Swift
static var jsonDecoder: JSONDecoder