ReportHeapSnapshotProgressEvent.fromJson constructor

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

Implementation

factory ReportHeapSnapshotProgressEvent.fromJson(Map<String, dynamic> json) {
  return ReportHeapSnapshotProgressEvent(
    done: json['done'] as int,
    total: json['total'] as int,
    finished: json.containsKey('finished') ? json['finished'] as bool : null,
  );
}