AppInstallState.fromMap constructor

AppInstallState.fromMap(
  1. Map map
)

Implementation

factory AppInstallState.fromMap(Map<dynamic, dynamic> map) {
  return AppInstallState(
    installStatus: InstallStatus.fromValue(map['installStatus'] as int? ?? 0),
    bytesDownloaded: map['bytesDownloaded'] as int? ?? 0,
    totalBytesToDownload: map['totalBytesToDownload'] as int? ?? 0,
    installErrorCode: map['installErrorCode'] as int? ?? 0,
  );
}