From 03de5b4bf794d1c2497102d1df02b238e85c18ef Mon Sep 17 00:00:00 2001 From: SomnusVeritas Date: Fri, 20 Oct 2023 22:38:38 +0200 Subject: [PATCH] profile model --- lib/models/profile.dart | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/models/profile.dart 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; +}