Files
days_left_flutter/lib/model/UserProfileDetails.dart
hmalik144 f83071fa78 - Introduction on base view model and stateless widget classes
- Implementation of firebase
- Implementation of dependency injection

Took 11 hours 26 minutes
2021-07-24 20:54:18 +01:00

27 lines
572 B
Dart

class UserProfileDetails {
final String name;
final String dob;
final String postcode;
final String email;
final String phone;
final String sex;
UserProfileDetails(
this.name,
this.dob,
this.postcode,
this.email,
this.phone,
this.sex
);
UserProfileDetails.fromSnapshot(Map<dynamic, dynamic> snapshot) :
name = snapshot["name"],
dob = snapshot["dob"],
postcode = snapshot["postcode"],
email = snapshot["email"],
phone = snapshot["phone"],
sex = snapshot["sex"];
}