AnalyzeIamPolicyResponse.fromJson constructor

AnalyzeIamPolicyResponse.fromJson(
  1. Map json_
)

Implementation

AnalyzeIamPolicyResponse.fromJson(core.Map json_)
    : this(
        fullyExplored: json_.containsKey('fullyExplored')
            ? json_['fullyExplored'] as core.bool
            : null,
        mainAnalysis: json_.containsKey('mainAnalysis')
            ? IamPolicyAnalysis.fromJson(
                json_['mainAnalysis'] as core.Map<core.String, core.dynamic>)
            : null,
        serviceAccountImpersonationAnalysis:
            json_.containsKey('serviceAccountImpersonationAnalysis')
                ? (json_['serviceAccountImpersonationAnalysis'] as core.List)
                    .map((value) => IamPolicyAnalysis.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
      );