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