GoogleCloudRecommendationengineV1beta1UserEvent.fromJson constructor

GoogleCloudRecommendationengineV1beta1UserEvent.fromJson(
  1. Map _json
)

Implementation

GoogleCloudRecommendationengineV1beta1UserEvent.fromJson(core.Map _json)
    : this(
        eventDetail: _json.containsKey('eventDetail')
            ? GoogleCloudRecommendationengineV1beta1EventDetail.fromJson(
                _json['eventDetail'] as core.Map<core.String, core.dynamic>)
            : null,
        eventSource: _json.containsKey('eventSource')
            ? _json['eventSource'] as core.String
            : null,
        eventTime: _json.containsKey('eventTime')
            ? _json['eventTime'] as core.String
            : null,
        eventType: _json.containsKey('eventType')
            ? _json['eventType'] as core.String
            : null,
        productEventDetail: _json.containsKey('productEventDetail')
            ? GoogleCloudRecommendationengineV1beta1ProductEventDetail
                .fromJson(_json['productEventDetail']
                    as core.Map<core.String, core.dynamic>)
            : null,
        userInfo: _json.containsKey('userInfo')
            ? GoogleCloudRecommendationengineV1beta1UserInfo.fromJson(
                _json['userInfo'] as core.Map<core.String, core.dynamic>)
            : null,
      );