ScriptCoverage.fromJson constructor

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

Implementation

factory ScriptCoverage.fromJson(Map<String, dynamic> json) {
  return ScriptCoverage(
    scriptId: runtime.ScriptId.fromJson(json['scriptId'] as String),
    url: json['url'] as String,
    functions: (json['functions'] as List)
        .map((e) => FunctionCoverage.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}