diff --git a/lib/models/profile.dart b/lib/models/profile.dart new file mode 100644 index 0000000..5812c6b --- /dev/null +++ b/lib/models/profile.dart @@ -0,0 +1,8 @@ +class Profile { + final String username; + final int points; + + Profile.fromMap(Map map) + : username = map['username'], + points = map['points'] ?? 0; +}