trainingListResponseModelFromJson function

TrainingListResponseModel trainingListResponseModelFromJson(
  1. String str
)

data : [{"title":"event title 1","description":"description 1","created_at":"18 Jul, 2023","created_time":"06:18 PM","updated_at":"","updated_time":"","is_active":"1","master_user_id":"1","videos_link":{"url":"https://www.youtube.com/embed/9kMJ5ptKmhE","title":"url 1","url_thumnail":"https://www.reecosys.com/api/image-tool/index.php?src=https://img.youtube.com/vi/9kMJ5ptKmhE/sddefault.jpg"},"files":{"file":"https://www.reecosys.com/assets/uploads/training/files/file_1689684521_39.pdf","title":"file 1"},{"file":"https://www.reecosys.com/assets/uploads/training/files/file_1689684521_3.pdf","title":""},{"file":"https://www.reecosys.com/assets/uploads/training/files/file_1689677590_89.pdf","title":""}}] success : 1 message : "Records found." total_records : 1

Implementation

TrainingListResponseModel trainingListResponseModelFromJson(String str) => TrainingListResponseModel.fromJson(json.decode(str));