UserModel class

Annotations
  • @JsonSerializable(ignoreUnannotated: true)

Constructors

UserModel.new({String? uid, DocumentSnapshot<Object?>? snapshot, String? name, String? email, String? avatarUrl, UserRole? role, double? createdAt, double? updatedAt, double? lastUpdatedClaims, bool? onboardingFinished, double? userAffinity})
UserModel.fromDocumentSnapshot(DocumentSnapshot<Map<String, dynamic>> snapshot)
Connect the generated _$UserModelFromJson function to the fromJson factory.
factory
UserModel.fromJson(Map<String, dynamic> json)
Connect the generated _$UserModelFromJson function to the fromJson factory.
factory

Properties

avatarUrl String?
final
createdAt double?
final
email String?
final
hashCode int
The hash code for this object.
no setterinherited
lastUpdatedClaims double?
final
name String?
final
onboardingFinished bool?
final
role UserRole?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapshot ↔ DocumentSnapshot<Object?>?
getter/setter pair
uid String?
getter/setter pair
updatedAt double?
final
userAffinity double?
final

Methods

copyWith({String? uid, DocumentSnapshot<Object?>? snapshot, String? name, String? email, String? avatarUrl, UserRole? role, double? createdAt, double? updatedAt, double? lastUpdatedClaims, bool? onboardingFinished, double? userAffinity}) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Connect the generated _$UserModelToJson function to the toJson method.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited