Untitled
unknown
swift
2 years ago
668 B
7
Indexable
struct CalenderResponse: Codable { let status: Bool let message: String let data: CalenderDataClass } struct CalenderDataClass: Codable { let year: Int let listOfHistoryLeave: [ListOfHistoryLeave] enum CodingKeys: String, CodingKey { case year case listOfHistoryLeave = "list_of_history_leave" } } struct ListOfHistoryLeave: Codable { let month: Int let leaveDate: [LeaveDay] enum CodingKeys: String, CodingKey { case month case leaveDate = "leave_date" } } struct LeaveDay: Codable { let leaveID: Int let startDate, startType, endDate, endType: String let duration: Double }
Editor is loading...
Leave a Comment