App.fromMap constructor

App.fromMap(
  1. Map map
)

Implementation

factory App.fromMap(Map<dynamic, dynamic> map) {
  Uint8List decodedIcon = base64.decode(map["appIcon"] ?? "");
  return App(
    appName: map["appName"],
    packageName: map["packageName"],
    versionName: map["versionName"],
    decodedIcon: decodedIcon,
    installDate: _formatDate(map["installDate"]),
    lastUpdateDate: _formatDate(map["lastUpdateDate"]),
  );
}