blah
This commit is contained in:
@@ -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? ?? []),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user