mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-28 03:18:49 +05:00
16 lines
357 B
Dart
16 lines
357 B
Dart
class User {
|
|
final String id;
|
|
final String name;
|
|
final String email;
|
|
|
|
User({required this.id, required this.name, required this.email});
|
|
|
|
factory User.fromJson(Map<String, dynamic> json) {
|
|
return User(
|
|
id: json['_id'] as String? ?? '',
|
|
name: json['name'] as String? ?? '',
|
|
email: json['email'] as String? ?? '',
|
|
);
|
|
}
|
|
}
|