This commit is contained in:
2026-05-14 16:54:32 +00:00
parent 5b2a2e7ddb
commit 15fcbcc9eb
212 changed files with 18586 additions and 10360 deletions
@@ -1,28 +1,28 @@
class Activity {
final int id;
final String title;
final String description;
final String category; // 'Méditation', 'Musique', 'Respiration', etc.
final String? imageUrl;
final String? videoUrl;
Activity({
required this.id,
required this.title,
required this.description,
required this.category,
this.imageUrl,
this.videoUrl,
});
factory Activity.fromJson(Map<String, dynamic> json) {
return Activity(
id: json['id'],
title: json['title'] ?? '',
description: json['description'] ?? '',
category: json['category'] ?? 'Détente',
imageUrl: json['image_url'],
videoUrl: json['video_url'],
);
}
}
class Activity {
final int id;
final String title;
final String description;
final String category; // 'Méditation', 'Musique', 'Respiration', etc.
final String? imageUrl;
final String? videoUrl;
Activity({
required this.id,
required this.title,
required this.description,
required this.category,
this.imageUrl,
this.videoUrl,
});
factory Activity.fromJson(Map<String, dynamic> json) {
return Activity(
id: json['id'],
title: json['title'] ?? '',
description: json['description'] ?? '',
category: json['category'] ?? 'Détente',
imageUrl: json['image_url'],
videoUrl: json['video_url'],
);
}
}