GoogleAdsHomeservicesLocalservicesV1AccountReport.fromJson constructor Null safety

GoogleAdsHomeservicesLocalservicesV1AccountReport.fromJson(
  1. Map _json
)

Implementation

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