XapptorUser.from_snapshot constructor
Implementation
XapptorUser.from_snapshot(
String id,
String email,
Map<String, dynamic> snapshot,
) : id = id,
firstname = snapshot['firstname'],
lastname = snapshot['lastname'],
email = email,
birthday = timestamp_to_date(snapshot['birthday']),
gender = snapshot['gender'],
country = snapshot['country'],
admin = snapshot['admin'] ?? false,
owner = snapshot['owner'] ?? false;