ArchiveSummaryUpdate.fromMap constructor

ArchiveSummaryUpdate.fromMap(
  1. Map map
)

Implementation

factory ArchiveSummaryUpdate.fromMap(Map<dynamic, dynamic> map) {
  return ArchiveSummaryUpdate(
    thumbnailMimeType: map['thumbnailMimeType'],
    thumbnail: map['thumbnail'] != null
        ? Uint8List.fromList(
            List<int>.from(map['thumbnail']),
          )
        : null,
    descInfo: map['description'],
    currentProgress: map['currentProgress'],
    activeTime: map['activeTime'],
  );
}