TakeCoverageDeltaResult.fromJson constructor

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

Implementation

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