AppInfo.create constructor

AppInfo.create(
  1. dynamic data
)

Implementation

factory AppInfo.create(dynamic data) {
  return AppInfo(
    name: data["name"],
    icon: data["icon"],
    packageName: data["package_name"],
    versionName: data["version_name"] ?? "1.0.0",
    versionCode: data["version_code"] ?? 1,
    builtWith: parseBuiltWith(data["built_with"]),
    installedTimestamp: data["installed_timestamp"] ?? 0,
  );
}