ReportSummary.fromJson constructor

ReportSummary.fromJson(
  1. Map json_
)

Implementation

ReportSummary.fromJson(core.Map json_)
    : this(
        allAssetsStats: json_.containsKey('allAssetsStats')
            ? ReportSummaryAssetAggregateStats.fromJson(
                json_['allAssetsStats']
                    as core.Map<core.String, core.dynamic>)
            : null,
        groupFindings: json_.containsKey('groupFindings')
            ? (json_['groupFindings'] as core.List)
                .map((value) => ReportSummaryGroupFinding.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );