mapFromJson static method
Implementation
static Map<String, AppointmentModel> mapFromJson(dynamic json) {
final map = <String, AppointmentModel>{};
if (json is Map && json.isNotEmpty) {
json.cast<String, dynamic>().forEach(
(key, dynamic value) => map[key] = AppointmentModel.fromJson(value));
}
return map;
}