GoogleAdsHomeservicesLocalservicesV1AccountReport.fromJson constructor

GoogleAdsHomeservicesLocalservicesV1AccountReport.fromJson(
  1. Map json_
)

Implementation

GoogleAdsHomeservicesLocalservicesV1AccountReport.fromJson(core.Map json_)
  : this(
      accountId: json_['accountId'] as core.String?,
      aggregatorInfo: json_.containsKey('aggregatorInfo')
          ? GoogleAdsHomeservicesLocalservicesV1AggregatorInfo.fromJson(
              json_['aggregatorInfo'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      averageFiveStarRating: (json_['averageFiveStarRating'] as core.num?)
          ?.toDouble(),
      averageWeeklyBudget: (json_['averageWeeklyBudget'] as core.num?)
          ?.toDouble(),
      businessName: json_['businessName'] as core.String?,
      currencyCode: json_['currencyCode'] as core.String?,
      currentPeriodChargedLeads:
          json_['currentPeriodChargedLeads'] as core.String?,
      currentPeriodConnectedPhoneCalls:
          json_['currentPeriodConnectedPhoneCalls'] as core.String?,
      currentPeriodPhoneCalls:
          json_['currentPeriodPhoneCalls'] as core.String?,
      currentPeriodTotalCost: (json_['currentPeriodTotalCost'] as core.num?)
          ?.toDouble(),
      impressionsLastTwoDays: json_['impressionsLastTwoDays'] as core.String?,
      phoneLeadResponsiveness: (json_['phoneLeadResponsiveness'] as core.num?)
          ?.toDouble(),
      previousPeriodChargedLeads:
          json_['previousPeriodChargedLeads'] as core.String?,
      previousPeriodConnectedPhoneCalls:
          json_['previousPeriodConnectedPhoneCalls'] as core.String?,
      previousPeriodPhoneCalls:
          json_['previousPeriodPhoneCalls'] as core.String?,
      previousPeriodTotalCost: (json_['previousPeriodTotalCost'] as core.num?)
          ?.toDouble(),
      totalReview: json_['totalReview'] as core.int?,
    );