AppInfo.create constructor

AppInfo.create(
  1. dynamic data
)

Factory constructor for creating an instance of AppInfo from dynamic data.

Implementation

factory AppInfo.create(dynamic data) {
  return AppInfo(
    data["name"],
    data["icon"],
    data["package_name"],
    data["is_system_app"],
    _getProfileTypeFromString(data["profile"]),
    data["serial_number"],
  );
}