populate method

  1. @override
dynamic populate(
  1. dynamic data
)
override

Populates class properties via data object. @param data Data object.

Implementation

@override
populate(dynamic data) {
  if (data != null) {
    name = data["name"];
    CID = data["CID"];
    parentDirectoryUuid = data["parentDirectoryUuid"];
    if (data["type"] != null) {
      type = StorageContentType.getByValue(data["type"]);
    }
    link = data["link"];
    super.populate(data);
    // done excludedKeys = ['content']; in typescript
  }
}