This commit is contained in:
2025-10-26 16:41:01 +01:00
parent e41f781c3f
commit 348746c0d4
4 changed files with 561 additions and 24 deletions

View File

@@ -1,11 +1,23 @@
class Liste {
final String id;
String title;
final String owner;
List<String> members;
Liste({required this.id, required this.title});
Liste({
required this.id,
required this.title,
required this.owner,
required this.members,
});
factory Liste.fromJson(Map<String, dynamic> json) {
return Liste(id: json['id'] as String, title: json['title'] as String);
return Liste(
id: json['id'] as String,
title: json['title'] as String,
owner: json['owner'] as String? ?? '',
members: List<String>.from(json['members'] as List? ?? []),
);
}
}