Merge branch 'master' into develop

This commit is contained in:
2026-01-27 16:51:02 +01:00
8 changed files with 572 additions and 41 deletions
+4
View File
@@ -4,6 +4,7 @@ class AppUser {
final String role;
final DateTime createdAt;
final DateTime updatedAt;
final bool changementMdpObligatoire;
AppUser({
required this.id,
@@ -11,6 +12,7 @@ class AppUser {
required this.role,
required this.createdAt,
required this.updatedAt,
this.changementMdpObligatoire = false,
});
factory AppUser.fromJson(Map<String, dynamic> json) {
@@ -20,6 +22,7 @@ class AppUser {
role: json['role'] as String,
createdAt: DateTime.parse(json['createdAt'] as String),
updatedAt: DateTime.parse(json['updatedAt'] as String),
changementMdpObligatoire: json['changement_mdp_obligatoire'] as bool? ?? false,
);
}
@@ -30,6 +33,7 @@ class AppUser {
'role': role,
'createdAt': createdAt.toIso8601String(),
'updatedAt': updatedAt.toIso8601String(),
'changement_mdp_obligatoire': changementMdpObligatoire,
};
}
}