mapDatabaseInformation method

void mapDatabaseInformation({
  1. required DocumentSnapshot<Map<String, dynamic>> databaseField,
})

Implementation

void mapDatabaseInformation({
  required DocumentSnapshot<Map<String, dynamic>>
  databaseField,
}) {
  _user.value = UserModel(
    name: databaseField['name'] ?? '',
    id: databaseField['id'] ?? '',
    accountType: accountTypeFromString(
      databaseField['accountType'],
    ),
    verified: databaseField['verified'] ?? false,
    email: databaseField['email'] ?? '',
    imageUrl: databaseField['imageUrl'] ?? '',
    about: databaseField['about'] ?? '',
  );
}