29 lines
774 B
Dart
29 lines
774 B
Dart
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,
|
|
required this.thumbnail,
|
|
required this.totalTopics,
|
|
required this.completedTopics,
|
|
});
|
|
|
|
factory CompletedTopic.fromJson(Map<String, dynamic> 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'],
|
|
);
|
|
}
|
|
}
|