38 lines
725 B
Dart
38 lines
725 B
Dart
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'];
|
|
}
|
|
}
|