DownloadInfo.formMap constructor

DownloadInfo.formMap(
  1. dynamic map
)

Implementation

factory DownloadInfo.formMap(dynamic map) => DownloadInfo(
      maxLength: map['max_length'],
      currentLength: map['current_length'],
      path: map['path'],
      planTime: map['plan_time'],
      percent: map['percent'],
      id: map['id'],
      status: DownloadStatus._internal(map['status']),
      speed: map['speed'],
    );