decode static method

DownloadAsset decode(
  1. Object result
)

Implementation

static DownloadAsset decode(Object result) {
  result as List<Object?>;
  return DownloadAsset(
    assetId: result[0]! as String,
    title: result[1] as String?,
    state: result[2]! as DownloadState,
    progress: result[3]! as double,
    totalSize: result[4]! as int,
    downloadedSize: result[5]! as int,
    thumbnailUrl: result[6] as String?,
    metadata: (result[7] as Map<Object?, Object?>?)?.cast<String, String>(),
  );
}