get<T> method
Helper method to extract a property from a CollectionElement.
Implementation
T get<T>(String name) {
final property = properties[name];
if ((T == List<String>) && property is ListLiteral) {
return property.elements
.map((e) => (e as StringLiteral).stringValue ?? '')
.toList() as T;
}
return property as T;
}