GoogleAdsSearchads360V23CommonUserAttribute.fromJson constructor

GoogleAdsSearchads360V23CommonUserAttribute.fromJson(
  1. Map json_
)

Implementation

GoogleAdsSearchads360V23CommonUserAttribute.fromJson(core.Map json_)
  : this(
      acquisitionDateTime: json_['acquisitionDateTime'] as core.String?,
      averagePurchaseCount: json_['averagePurchaseCount'] as core.int?,
      averagePurchaseValueMicros:
          json_['averagePurchaseValueMicros'] as core.String?,
      eventAttribute: (json_['eventAttribute'] as core.List?)
          ?.map(
            (value) => GoogleAdsSearchads360V23CommonEventAttribute.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      firstPurchaseDateTime: json_['firstPurchaseDateTime'] as core.String?,
      lastPurchaseDateTime: json_['lastPurchaseDateTime'] as core.String?,
      lifecycleStage: json_['lifecycleStage'] as core.String?,
      lifetimeValueBucket: json_['lifetimeValueBucket'] as core.int?,
      lifetimeValueMicros: json_['lifetimeValueMicros'] as core.String?,
      shoppingLoyalty: json_.containsKey('shoppingLoyalty')
          ? GoogleAdsSearchads360V23CommonShoppingLoyalty.fromJson(
              json_['shoppingLoyalty'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );