populate method

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

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

Implementation

@override
dynamic populate(dynamic data) {
  if (data != null) {
    super.populate(data);
    name ??= data["name"];
    description ??= data["description"];
    ipnsName ??= data["ipnsName"];
    ipnsValue ??= data["ipnsValue"];
    link ??= data["link"];
  }
  return this;
}