List<double?> nullableDoubleListFromDynamic(dynamic input) { return input is List ? input.map((e) => nullableDoubleFromDynamic(e)).toList() : []; }