janim2 / RentersParadise

0 stars 0 forks source link

Users model #5

Closed king-kloy closed 3 years ago

king-kloy commented 3 years ago

Create a model class for Users model based on the database table.

Eg: a cat model

class Cat {
  String id;
  int name;

  Cat(this.id, this.name);

  // converts cat  details to a Map
  Map<String, dynamic> toMap() {
    var map = <String, dynamic>{
      'id': id,
      'name': name
    };

    return map;
  }

  // destruct map of cat
  Cat.fromMap(Map<String, dynamic> map) {
    id = map['id'];
    name = map['name'];
  }
}

This can be a guide to do it. Please deadline is tomorrow by this time. No Excuses

king-kloy commented 3 years ago

@janim2 how's it going man? should someone do it? @lateofrederick @ekyeremeh7 who will take this pizza?

ekyeremeh7 commented 3 years ago

Why Jesse couldn't get time to work on his?

king-kloy commented 3 years ago

I think @janim2 said he's not going to work on the back-end. I thought Norbert will do but it seems he's somehow busy

king-kloy commented 3 years ago

@ekyeremeh7 please if you're less busy kindly take this upon your shoulders and do it.

ekyeremeh7 commented 3 years ago

Do what particular?

king-kloy commented 3 years ago

create the User model or fix this issue

ekyeremeh7 commented 3 years ago

OK

king-kloy commented 3 years ago

This was fixed by @ekyeremeh7