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,
      );