profile model
This commit is contained in:
8
lib/models/profile.dart
Normal file
8
lib/models/profile.dart
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user