/// Adapter for Experience data (skills/industries) to map data layer values to domain models.
class ExperienceAdapter {
  /// Converts a dynamic list (from backend AnyValue) to List<String>.
  /// 
  /// Handles nulls and converts elements to Strings.
  static List<String> fromDynamicList(dynamic data) {
    if (data == null) return <String>[];
    
    if (data is List) {
       return data
        .where((dynamic e) => e != null)
        .map((dynamic e) => e.toString())
        .toList();
    }
    
    return <String>[];
  }
}
