GoogleCloudRecaptchaenterpriseV1Metrics.fromJson constructor

GoogleCloudRecaptchaenterpriseV1Metrics.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecaptchaenterpriseV1Metrics.fromJson(core.Map json_)
    : this(
        challengeMetrics: json_.containsKey('challengeMetrics')
            ? (json_['challengeMetrics'] as core.List)
                .map((value) =>
                    GoogleCloudRecaptchaenterpriseV1ChallengeMetrics.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        scoreMetrics: json_.containsKey('scoreMetrics')
            ? (json_['scoreMetrics'] as core.List)
                .map((value) =>
                    GoogleCloudRecaptchaenterpriseV1ScoreMetrics.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
      );