PreciseCoverageDeltaUpdateEvent.fromJson constructor

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

Implementation

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