class CompletedTopic { final String idSection; final String nameSection; final String descriptionSection; final String? thumbnail; final int totalTopics; final int completedTopics; CompletedTopic({ required this.idSection, required this.nameSection, required this.descriptionSection, this.thumbnail, required this.totalTopics, required this.completedTopics, }); factory CompletedTopic.fromJson(Map json) { return CompletedTopic( idSection: json['ID_SECTION'], nameSection: json['NAME_SECTION'], descriptionSection: json['DESCRIPTION_SECTION'], thumbnail: json['THUMBNAIL'], totalTopics: json['TOTAL_TOPICS'], completedTopics: json['COMPLETED_TOPICS'], ); } }