LocalUser.dart 531 B

123456789101112131415161718192021
  1. class LocalUser {
  2. String? email;
  3. String? password;
  4. String? accessToken;
  5. LocalUser({this.email, this.password, this.accessToken});
  6. LocalUser.fromJson(Map<String, dynamic> json) {
  7. email = json['email'];
  8. password = json['password'];
  9. accessToken = json['access_token'];
  10. }
  11. Map<String, dynamic> toJson() {
  12. final Map<String, dynamic> data = new Map<String, dynamic>();
  13. data['email'] = this.email;
  14. data['password'] = this.password;
  15. data['accessToken'] = this.accessToken;
  16. return data;
  17. }
  18. }