form pro - sin imagenes

This commit is contained in:
Felipe
2024-03-14 22:07:46 -05:00
parent 66125235dd
commit a3c50cf2c8
123 changed files with 2077 additions and 18345 deletions
@@ -1,4 +1,5 @@
import 'package:equatable/equatable.dart';
import 'package:user_repository/src/models/models.dart';
class MyUserEntity extends Equatable {
final String id;
@@ -10,6 +11,7 @@ class MyUserEntity extends Equatable {
final String? picture;
final String? birthday;
final String? gender;
final ProState proState;
const MyUserEntity({
required this.id,
@@ -21,6 +23,7 @@ class MyUserEntity extends Equatable {
required this.picture,
required this.birthday,
required this.gender,
required this.proState,
});
Map<String, Object?> toDocument() {
@@ -34,6 +37,7 @@ class MyUserEntity extends Equatable {
'picture': picture,
'birthday': birthday,
'gender': gender,
'professional_state': enumToInt(proState),
};
}
@@ -48,6 +52,7 @@ class MyUserEntity extends Equatable {
picture: doc['picture'] as String?,
birthday: doc['birthday'] as String?,
gender: doc['gender'] as String?,
proState: intToEnum(doc['professional_state'] as int),
);
}
@@ -66,7 +71,8 @@ class MyUserEntity extends Equatable {
city: $city
picture: $picture
birthday: $birthday
gender: $gender
gender: $gender,
proState: ${proState.name}
}''';
}
}