populate method
Populates class properties via data object. @param data Data object.
Implementation
@override
populate(data) {
if (data != null) {
name = data?["name"];
description = data?["description"];
size = data?["size"];
// content = data?["content"]; # is ignored in typescript
super.populate(data);
}
}