PriceInsights.fromJson constructor

PriceInsights.fromJson(
  1. Map json_
)

Implementation

PriceInsights.fromJson(core.Map json_)
    : this(
        predictedClicksChangeFraction: json_
                .containsKey('predictedClicksChangeFraction')
            ? (json_['predictedClicksChangeFraction'] as core.num).toDouble()
            : null,
        predictedConversionsChangeFraction:
            json_.containsKey('predictedConversionsChangeFraction')
                ? (json_['predictedConversionsChangeFraction'] as core.num)
                    .toDouble()
                : null,
        predictedGrossProfitChangeFraction:
            json_.containsKey('predictedGrossProfitChangeFraction')
                ? (json_['predictedGrossProfitChangeFraction'] as core.num)
                    .toDouble()
                : null,
        predictedImpressionsChangeFraction:
            json_.containsKey('predictedImpressionsChangeFraction')
                ? (json_['predictedImpressionsChangeFraction'] as core.num)
                    .toDouble()
                : null,
        predictedMonthlyGrossProfitChangeCurrencyCode:
            json_.containsKey('predictedMonthlyGrossProfitChangeCurrencyCode')
                ? json_['predictedMonthlyGrossProfitChangeCurrencyCode']
                    as core.String
                : null,
        predictedMonthlyGrossProfitChangeMicros: json_
                .containsKey('predictedMonthlyGrossProfitChangeMicros')
            ? json_['predictedMonthlyGrossProfitChangeMicros'] as core.String
            : null,
        suggestedPriceCurrencyCode:
            json_.containsKey('suggestedPriceCurrencyCode')
                ? json_['suggestedPriceCurrencyCode'] as core.String
                : null,
        suggestedPriceMicros: json_.containsKey('suggestedPriceMicros')
            ? json_['suggestedPriceMicros'] as core.String
            : null,
      );