aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/models/user.dart
blob: 89e3ace0838d6eb82996c46b12971a6e895076aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
  }
}