toMap method

Map<String, dynamic> toMap()

Convert User to a Map for Firestore storage.

Implementation

Map<String, dynamic> toMap() {
  return {
    'userId': userId,
    'name': name,
    'role': role,
    'firebaseToken': firebaseToken,
  };
}