FirestoreUserModel class
Firestore FirestoreUserModel Model
This is used for mirroring the user data in the firestore.
Constructors
-
FirestoreUserModel({required Map<
String, dynamic> data, required String uid, required String name, required String email, required String phoneNumber, required String displayName, required String photoUrl, required String profileBackgroundImageUrl, required List<String> photoUrls, required String stateMessage, bool isDisabled = false, required int birthYear, required int birthMonth, required int birthDay, required int createdAt, required int order, bool isAdmin = false, bool isVerified = false, List<String> ? blocks, required String gender, required String idUrl, required int idUploadedAt, required String occupation, required String countryCode, required String siDo, required String siGunGu}) -
FirestoreUserModel.fromDocumentSnapshot(DocumentSnapshot<
Object?> documentSnapshot) -
factory
- FirestoreUserModel.fromJson(Map json, {String? uid})
-
factory
Properties
- age → String
-
no setter
- birthDay ↔ int
-
getter/setter pair
- birthMonth ↔ int
-
getter/setter pair
- birthYear ↔ int
-
getter/setter pair
-
blocks
↔ List<
String> ? -
getter/setter pair
- countryCode ↔ String
-
The countryCode will be the basis of the
Nationality of the user.
getter/setter pair
- createdAt ↔ int
-
getter/setter pair
-
data
↔ Map<
String, dynamic> -
getter/setter pair
- displayName ↔ String
-
getter/setter pair
- email ↔ String
-
getter/setter pair
- gender ↔ String
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- idUploadedAt ↔ int
-
getter/setter pair
- idUrl ↔ String
-
getter/setter pair
- isAdmin ↔ bool
-
getter/setter pair
- isDisabled ↔ bool
-
getter/setter pair
- isVerified ↔ bool
-
getter/setter pair
- name ↔ String
-
getter/setter pair
- occupation ↔ String
-
getter/setter pair
- order ↔ int
-
getter/setter pair
- phoneNumber ↔ String
-
getter/setter pair
- photoUrl ↔ String
-
getter/setter pair
-
photoUrls
↔ List<
String> -
getter/setter pair
- profileBackgroundImageUrl ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- siDo ↔ String
-
siDo is composed with two region codes separated by '-'.
For example, '1-11' where the first 1 is 'Seoul', and the second 11 is 'Dongdaemun-gu'.
The default value of siDo is an empty string if the user didn't set the region code.
getter/setter pair
- siGunGu ↔ String
-
getter/setter pair
- stateMessage ↔ String
-
getter/setter pair
- uid ↔ String
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- collectionName → const String