Fixed issues with doctor.dart

This commit is contained in:
Benoy Bose 2024-11-15 11:03:07 +05:30
parent 0f72ecf6ad
commit ab09f01e82

View File

@ -25,7 +25,6 @@ class Doctor {
this.profileImageUrl,
this.addressType,
this.achievements,
this.profileImageUrl,
this.profileImage, // Initialize with empty list
this.speciality,
this.yearsOfExperience,
@ -72,7 +71,6 @@ class Doctor {
static Doctor fromJson(Map<String, dynamic> json) => Doctor(
profileImageUrl: json['profileImageUrl'],
achievements: List<String>.from(json['achievements'] ?? []),
profileImageUrl: json['profileImageUrl'],
profileImage: json['profileImage'],
speciality: json['speciality'],
yearsOfExperience: json['yearsOfExperience'],