ReportData.fromJson constructor

ReportData.fromJson(
  1. Map json_
)

Implementation

ReportData.fromJson(core.Map json_)
    : this(
        dataLastRefreshed: json_.containsKey('dataLastRefreshed')
            ? json_['dataLastRefreshed'] as core.String
            : null,
        emptyReason: json_.containsKey('emptyReason')
            ? json_['emptyReason'] as core.String
            : null,
        isDataGolden: json_.containsKey('isDataGolden')
            ? json_['isDataGolden'] as core.bool
            : null,
        maximums: json_.containsKey('maximums')
            ? (json_['maximums'] as core.List)
                .map((value) => DateRangeValues.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        minimums: json_.containsKey('minimums')
            ? (json_['minimums'] as core.List)
                .map((value) => DateRangeValues.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        rowCount: json_.containsKey('rowCount')
            ? json_['rowCount'] as core.int
            : null,
        rows: json_.containsKey('rows')
            ? (json_['rows'] as core.List)
                .map((value) => ReportRow.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        samplesReadCounts: json_.containsKey('samplesReadCounts')
            ? (json_['samplesReadCounts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        samplingSpaceSizes: json_.containsKey('samplingSpaceSizes')
            ? (json_['samplingSpaceSizes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        totals: json_.containsKey('totals')
            ? (json_['totals'] as core.List)
                .map((value) => DateRangeValues.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );