ProgressNotification.fromJson constructor

ProgressNotification.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ProgressNotification.fromJson(Map<String, dynamic> json) {
  return ProgressNotification(
    requestId: json['requestId'],
    progress: (json['progress'] as num).toDouble(),
    total: json['total'] != null ? (json['total'] as num).toDouble() : null,
  );
}