diff options
author | Marvin Borner | 2018-07-20 18:14:18 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-20 18:14:18 +0200 |
commit | 4263997c3e419ef1cf7447d447c5582a322acf74 (patch) | |
tree | d6b5a7c836ba74d1a57f3e6b1a8f372064864c13 /lib/models/user.dart | |
parent | 18b8bd888a13c6dadfb7961cc88214332b6f5d38 (diff) |
Began basic login screen feature (mvp architecture)
Diffstat (limited to 'lib/models/user.dart')
-rw-r--r-- | lib/models/user.dart | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/models/user.dart b/lib/models/user.dart new file mode 100644 index 0000000..89e3ace --- /dev/null +++ b/lib/models/user.dart @@ -0,0 +1,21 @@ +class User { + String _email; + String _password; + User(this._email, this._password); + + User.map(dynamic obj) { + this._email = obj["email"]; + this._password = obj["password"]; + } + + String get email => _email; + String get password => _password; + + Map<String, dynamic> toMap() { + var map = new Map<String, dynamic>(); + map["email"] = _email; + map["password"] = _password; + + return map; + } +} |