Assume you have the following json. If you notice carefully, the data is almost similar to each other. Our goal is to give us a single data structure, which will store the details shown here. To begin with, let’s define a protocol Let’s define the Codable object for these responses. You can easily convert the