TakePreciseCoverageResult.fromJson constructor

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

Implementation

factory TakePreciseCoverageResult.fromJson(Map<String, dynamic> json) {
  return TakePreciseCoverageResult(
    result: (json['result'] as List)
        .map((e) => ScriptCoverage.fromJson(e as Map<String, dynamic>))
        .toList(),
    timestamp: json['timestamp'] as num,
  );
}