GoogleCloudRecommendationengineV1beta1EventDetail.fromJson constructor

GoogleCloudRecommendationengineV1beta1EventDetail.fromJson(
  1. Map _json
)

Implementation

GoogleCloudRecommendationengineV1beta1EventDetail.fromJson(core.Map _json)
    : this(
        eventAttributes: _json.containsKey('eventAttributes')
            ? GoogleCloudRecommendationengineV1beta1FeatureMap.fromJson(
                _json['eventAttributes']
                    as core.Map<core.String, core.dynamic>)
            : null,
        experimentIds: _json.containsKey('experimentIds')
            ? (_json['experimentIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        pageViewId: _json.containsKey('pageViewId')
            ? _json['pageViewId'] as core.String
            : null,
        recommendationToken: _json.containsKey('recommendationToken')
            ? _json['recommendationToken'] as core.String
            : null,
        referrerUri: _json.containsKey('referrerUri')
            ? _json['referrerUri'] as core.String
            : null,
        uri: _json.containsKey('uri') ? _json['uri'] as core.String : null,
      );