CodeCoverage.fromJson constructor

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

Implementation

factory CodeCoverage.fromJson(Map<String, dynamic> json) {
  return CodeCoverage(
    branchCoveragePercentage: json['branchCoveragePercentage'] as double?,
    branchesCovered: json['branchesCovered'] as int?,
    branchesMissed: json['branchesMissed'] as int?,
    expired: timeStampFromJson(json['expired']),
    filePath: json['filePath'] as String?,
    id: json['id'] as String?,
    lineCoveragePercentage: json['lineCoveragePercentage'] as double?,
    linesCovered: json['linesCovered'] as int?,
    linesMissed: json['linesMissed'] as int?,
    reportARN: json['reportARN'] as String?,
  );
}