profile model

This commit is contained in:
SomnusVeritas
2023-10-20 22:38:38 +02:00
parent 591fd346a6
commit 03de5b4bf7

8
lib/models/profile.dart Normal file
View File

@@ -0,0 +1,8 @@
class Profile {
final String username;
final int points;
Profile.fromMap(Map<String, dynamic> map)
: username = map['username'],
points = map['points'] ?? 0;
}