User.fromJson constructor

User.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory User.fromJson(Map<String, dynamic> json) {
  return User(json['id'] ?? 0, json['idNumber'], json['password'],
      json['fullName'], json['dateOfBirth'], json['email'], json['mobile']);
}