2024-10-10 05:49:33 +00:00
|
|
|
class Section {
|
|
|
|
|
final String id;
|
|
|
|
|
final String name;
|
|
|
|
|
final String description;
|
Updated various files, including constants, exercise providers, question widgets, section models, and screens for topics, learning, and settings, with changes to URLs, error handling, and UI components.
2024-11-21 05:45:41 +00:00
|
|
|
final String? thumbnail;
|
2024-10-10 05:49:33 +00:00
|
|
|
final DateTime timeSection;
|
|
|
|
|
|
|
|
|
|
Section({
|
|
|
|
|
required this.id,
|
|
|
|
|
required this.name,
|
|
|
|
|
required this.description,
|
Updated various files, including constants, exercise providers, question widgets, section models, and screens for topics, learning, and settings, with changes to URLs, error handling, and UI components.
2024-11-21 05:45:41 +00:00
|
|
|
this.thumbnail,
|
2024-10-10 05:49:33 +00:00
|
|
|
required this.timeSection,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
factory Section.fromJson(Map<String, dynamic> json) {
|
|
|
|
|
return Section(
|
|
|
|
|
id: json['ID_SECTION'],
|
|
|
|
|
name: json['NAME_SECTION'],
|
|
|
|
|
description: json['DESCRIPTION_SECTION'],
|
|
|
|
|
thumbnail: json['THUMBNAIL'],
|
|
|
|
|
timeSection: DateTime.parse(json['TIME_SECTION']),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|