populate method

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

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);
  }
}