The Encodable Protocol

Where Decodable helps us parse data and obtain an instantiated data model, Encodable takes us in the opposite direction. In this video, let's convert the instance of Employee back to JSON using the Encodable protocol.