GoogleCloudRecommendationengineV1beta1ListUserEventsResponse.fromJson constructor

GoogleCloudRecommendationengineV1beta1ListUserEventsResponse.fromJson(
  1. Map _json
)

Implementation

GoogleCloudRecommendationengineV1beta1ListUserEventsResponse.fromJson(
    core.Map _json)
    : this(
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
        userEvents: _json.containsKey('userEvents')
            ? (_json['userEvents'] as core.List)
                .map<GoogleCloudRecommendationengineV1beta1UserEvent>(
                    (value) => GoogleCloudRecommendationengineV1beta1UserEvent
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );