Complete refactoring SFM App Source Code
This commit is contained in:
37
lib/feature/settings/profile/profile_model.dart
Normal file
37
lib/feature/settings/profile/profile_model.dart
Normal file
@@ -0,0 +1,37 @@
|
||||
class User {
|
||||
String? id;
|
||||
String? username;
|
||||
String? role;
|
||||
String? name;
|
||||
String? email;
|
||||
String? phone;
|
||||
String? address;
|
||||
String? notes;
|
||||
String? latitude;
|
||||
String? longitude;
|
||||
|
||||
User(
|
||||
{this.address,
|
||||
this.email,
|
||||
this.id,
|
||||
this.name,
|
||||
this.notes,
|
||||
this.phone,
|
||||
this.role,
|
||||
this.username,
|
||||
this.latitude,
|
||||
this.longitude});
|
||||
|
||||
User.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
username = json['username'];
|
||||
role = json['role'];
|
||||
name = json['name'];
|
||||
email = json['email'];
|
||||
phone = json['phone'];
|
||||
address = json['address'];
|
||||
notes = json['notes'];
|
||||
latitude = json['latitude'];
|
||||
longitude = json['longitude'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user