GoogleCloudApigeeV1SecurityAssessmentResultScoringResult.fromJson constructor

GoogleCloudApigeeV1SecurityAssessmentResultScoringResult.fromJson(
  1. Map json_
)

Implementation

GoogleCloudApigeeV1SecurityAssessmentResultScoringResult.fromJson(
    core.Map json_)
    : this(
        assessmentRecommendations: json_
                .containsKey('assessmentRecommendations')
            ? (json_['assessmentRecommendations']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation
                      .fromJson(value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        dataUpdateTime: json_.containsKey('dataUpdateTime')
            ? json_['dataUpdateTime'] as core.String
            : null,
        failedAssessmentPerWeight:
            json_.containsKey('failedAssessmentPerWeight')
                ? (json_['failedAssessmentPerWeight']
                        as core.Map<core.String, core.dynamic>)
                    .map(
                    (key, value) => core.MapEntry(
                      key,
                      value as core.int,
                    ),
                  )
                : null,
        score: json_.containsKey('score') ? json_['score'] as core.int : null,
        severity: json_.containsKey('severity')
            ? json_['severity'] as core.String
            : null,
      );