get method
Implementation
dynamic get(List<String>? keys) {
if (_value == null || keys == null || keys.isEmpty) return this;
if (_value is! Map && _value is! List) {
throw Exception('Cannot get $keys from $_value (not a map or list)');
}
final subValue = (_value as dynamic)[keys.first];
if (subValue == null) return null;
if (subValue is! Data) {
throw Exception('Cannot get $keys from $_value (not a RecipeValue)');
}
return subValue.get(keys.sublist(1));
}