GoogleCloudRecommendationengineV1beta1UserInfo.fromJson constructor

GoogleCloudRecommendationengineV1beta1UserInfo.fromJson(
  1. Map _json
)

Implementation

GoogleCloudRecommendationengineV1beta1UserInfo.fromJson(core.Map _json)
    : this(
        directUserRequest: _json.containsKey('directUserRequest')
            ? _json['directUserRequest'] as core.bool
            : null,
        ipAddress: _json.containsKey('ipAddress')
            ? _json['ipAddress'] as core.String
            : null,
        userAgent: _json.containsKey('userAgent')
            ? _json['userAgent'] as core.String
            : null,
        userId: _json.containsKey('userId')
            ? _json['userId'] as core.String
            : null,
        visitorId: _json.containsKey('visitorId')
            ? _json['visitorId'] as core.String
            : null,
      );