Conversion.fromJson constructor

Conversion.fromJson(
  1. Map json_
)

Implementation

Conversion.fromJson(core.Map json_)
    : this(
        adGroupId: json_.containsKey('adGroupId')
            ? json_['adGroupId'] as core.String
            : null,
        adId: json_.containsKey('adId') ? json_['adId'] as core.String : null,
        adUserDataConsent: json_.containsKey('adUserDataConsent')
            ? json_['adUserDataConsent'] as core.String
            : null,
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        agencyId: json_.containsKey('agencyId')
            ? json_['agencyId'] as core.String
            : null,
        attributionModel: json_.containsKey('attributionModel')
            ? json_['attributionModel'] as core.String
            : null,
        campaignId: json_.containsKey('campaignId')
            ? json_['campaignId'] as core.String
            : null,
        channel: json_.containsKey('channel')
            ? json_['channel'] as core.String
            : null,
        clickId: json_.containsKey('clickId')
            ? json_['clickId'] as core.String
            : null,
        conversionId: json_.containsKey('conversionId')
            ? json_['conversionId'] as core.String
            : null,
        conversionModifiedTimestamp:
            json_.containsKey('conversionModifiedTimestamp')
                ? json_['conversionModifiedTimestamp'] as core.String
                : null,
        conversionTimestamp: json_.containsKey('conversionTimestamp')
            ? json_['conversionTimestamp'] as core.String
            : null,
        countMillis: json_.containsKey('countMillis')
            ? json_['countMillis'] as core.String
            : null,
        criterionId: json_.containsKey('criterionId')
            ? json_['criterionId'] as core.String
            : null,
        currencyCode: json_.containsKey('currencyCode')
            ? json_['currencyCode'] as core.String
            : null,
        customDimension: json_.containsKey('customDimension')
            ? (json_['customDimension'] as core.List)
                .map((value) => CustomDimension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        customMetric: json_.containsKey('customMetric')
            ? (json_['customMetric'] as core.List)
                .map((value) => CustomMetric.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        customerId: json_.containsKey('customerId')
            ? json_['customerId'] as core.String
            : null,
        deviceType: json_.containsKey('deviceType')
            ? json_['deviceType'] as core.String
            : null,
        dsConversionId: json_.containsKey('dsConversionId')
            ? json_['dsConversionId'] as core.String
            : null,
        engineAccountId: json_.containsKey('engineAccountId')
            ? json_['engineAccountId'] as core.String
            : null,
        floodlightOrderId: json_.containsKey('floodlightOrderId')
            ? json_['floodlightOrderId'] as core.String
            : null,
        inventoryAccountId: json_.containsKey('inventoryAccountId')
            ? json_['inventoryAccountId'] as core.String
            : null,
        productCountry: json_.containsKey('productCountry')
            ? json_['productCountry'] as core.String
            : null,
        productGroupId: json_.containsKey('productGroupId')
            ? json_['productGroupId'] as core.String
            : null,
        productId: json_.containsKey('productId')
            ? json_['productId'] as core.String
            : null,
        productLanguage: json_.containsKey('productLanguage')
            ? json_['productLanguage'] as core.String
            : null,
        quantityMillis: json_.containsKey('quantityMillis')
            ? json_['quantityMillis'] as core.String
            : null,
        revenueMicros: json_.containsKey('revenueMicros')
            ? json_['revenueMicros'] as core.String
            : null,
        segmentationId: json_.containsKey('segmentationId')
            ? json_['segmentationId'] as core.String
            : null,
        segmentationName: json_.containsKey('segmentationName')
            ? json_['segmentationName'] as core.String
            : null,
        segmentationType: json_.containsKey('segmentationType')
            ? json_['segmentationType'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        storeId: json_.containsKey('storeId')
            ? json_['storeId'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );