GoogleCloudAiplatformV1SafetyRating.fromJson constructor

GoogleCloudAiplatformV1SafetyRating.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1SafetyRating.fromJson(core.Map json_)
    : this(
        blocked: json_.containsKey('blocked')
            ? json_['blocked'] as core.bool
            : null,
        category: json_.containsKey('category')
            ? json_['category'] as core.String
            : null,
        probability: json_.containsKey('probability')
            ? json_['probability'] as core.String
            : null,
        probabilityScore: json_.containsKey('probabilityScore')
            ? (json_['probabilityScore'] as core.num).toDouble()
            : null,
        severity: json_.containsKey('severity')
            ? json_['severity'] as core.String
            : null,
        severityScore: json_.containsKey('severityScore')
            ? (json_['severityScore'] as core.num).toDouble()
            : null,
      );