Report.fromJson constructor

Report.fromJson(
  1. Map json_
)

Implementation

Report.fromJson(core.Map json_)
    : this(
        files: json_.containsKey('files')
            ? (json_['files'] as core.List)
                .map((value) => ReportFiles.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        isReportReady: json_.containsKey('isReportReady')
            ? json_['isReportReady'] as core.bool
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        request: json_.containsKey('request')
            ? ReportRequest.fromJson(
                json_['request'] as core.Map<core.String, core.dynamic>)
            : null,
        rowCount: json_.containsKey('rowCount')
            ? json_['rowCount'] as core.int
            : null,
        rows: json_.containsKey('rows')
            ? (json_['rows'] as core.List)
                .map((value) => value as core.Map<core.String, core.dynamic>)
                .toList()
            : null,
        statisticsCurrencyCode: json_.containsKey('statisticsCurrencyCode')
            ? json_['statisticsCurrencyCode'] as core.String
            : null,
        statisticsTimeZone: json_.containsKey('statisticsTimeZone')
            ? json_['statisticsTimeZone'] as core.String
            : null,
      );