Bon checkpoint + refactoring
This commit is contained in:
@@ -8,10 +8,11 @@ class ParticipantModel extends UserModel {
|
||||
required String prenoms,
|
||||
}) : super(
|
||||
userId: id,
|
||||
nom: nom,
|
||||
prenoms: prenoms,
|
||||
userLastName: nom,
|
||||
userFirstName: prenoms,
|
||||
email: '', // Valeur par défaut vide
|
||||
motDePasse: '', // Valeur par défaut vide
|
||||
profileImageUrl: '',
|
||||
);
|
||||
|
||||
factory ParticipantModel.fromJson(Map<String, dynamic> json) {
|
||||
@@ -27,8 +28,8 @@ class ParticipantModel extends UserModel {
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'id': userId,
|
||||
'nom': nom,
|
||||
'prenoms': prenoms,
|
||||
'nom': userLastName,
|
||||
'prenoms': userFirstName,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user