getDoctor method

Doctor? getDoctor()

Implementation

Doctor? getDoctor() {
  String? userJson = _prefsInstance.getString(users);
  if (userJson == null) return null;

  Map<String, dynamic> userMap = jsonDecode(userJson);
  return Doctor.fromMap(userMap);
}