ReportApiColumnSpec.fromJson constructor Null safety

ReportApiColumnSpec.fromJson(
  1. Map _json
)

Implementation

ReportApiColumnSpec.fromJson(core.Map _json)
    : this(
        columnName: _json.containsKey('columnName')
            ? _json['columnName'] as core.String
            : null,
        customDimensionName: _json.containsKey('customDimensionName')
            ? _json['customDimensionName'] as core.String
            : null,
        customMetricName: _json.containsKey('customMetricName')
            ? _json['customMetricName'] as core.String
            : null,
        endDate: _json.containsKey('endDate')
            ? _json['endDate'] as core.String
            : null,
        groupByColumn: _json.containsKey('groupByColumn')
            ? _json['groupByColumn'] as core.bool
            : null,
        headerText: _json.containsKey('headerText')
            ? _json['headerText'] as core.String
            : null,
        platformSource: _json.containsKey('platformSource')
            ? _json['platformSource'] as core.String
            : null,
        productReportPerspective:
            _json.containsKey('productReportPerspective')
                ? _json['productReportPerspective'] as core.String
                : null,
        savedColumnName: _json.containsKey('savedColumnName')
            ? _json['savedColumnName'] as core.String
            : null,
        startDate: _json.containsKey('startDate')
            ? _json['startDate'] as core.String
            : null,
      );