ReportRow.fromJson constructor

ReportRow.fromJson(
  1. Map json_
)

Implementation

ReportRow.fromJson(core.Map json_)
    : this(
        bestSellers: json_.containsKey('bestSellers')
            ? BestSellers.fromJson(
                json_['bestSellers'] as core.Map<core.String, core.dynamic>)
            : null,
        brand: json_.containsKey('brand')
            ? Brand.fromJson(
                json_['brand'] as core.Map<core.String, core.dynamic>)
            : null,
        competitiveVisibility: json_.containsKey('competitiveVisibility')
            ? CompetitiveVisibility.fromJson(json_['competitiveVisibility']
                as core.Map<core.String, core.dynamic>)
            : null,
        metrics: json_.containsKey('metrics')
            ? Metrics.fromJson(
                json_['metrics'] as core.Map<core.String, core.dynamic>)
            : null,
        priceCompetitiveness: json_.containsKey('priceCompetitiveness')
            ? PriceCompetitiveness.fromJson(json_['priceCompetitiveness']
                as core.Map<core.String, core.dynamic>)
            : null,
        priceInsights: json_.containsKey('priceInsights')
            ? PriceInsights.fromJson(
                json_['priceInsights'] as core.Map<core.String, core.dynamic>)
            : null,
        productCluster: json_.containsKey('productCluster')
            ? ProductCluster.fromJson(json_['productCluster']
                as core.Map<core.String, core.dynamic>)
            : null,
        productView: json_.containsKey('productView')
            ? ProductView.fromJson(
                json_['productView'] as core.Map<core.String, core.dynamic>)
            : null,
        segments: json_.containsKey('segments')
            ? Segments.fromJson(
                json_['segments'] as core.Map<core.String, core.dynamic>)
            : null,
        topicTrends: json_.containsKey('topicTrends')
            ? TopicTrends.fromJson(
                json_['topicTrends'] as core.Map<core.String, core.dynamic>)
            : null,
      );