GoogleCloudPolicytroubleshooterV1BindingExplanation.fromJson constructor

GoogleCloudPolicytroubleshooterV1BindingExplanation.fromJson(
  1. Map json_
)

Implementation

GoogleCloudPolicytroubleshooterV1BindingExplanation.fromJson(core.Map json_)
    : this(
        access: json_.containsKey('access')
            ? json_['access'] as core.String
            : null,
        condition: json_.containsKey('condition')
            ? GoogleTypeExpr.fromJson(
                json_['condition'] as core.Map<core.String, core.dynamic>)
            : null,
        memberships: json_.containsKey('memberships')
            ? (json_['memberships'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership
                      .fromJson(value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        relevance: json_.containsKey('relevance')
            ? json_['relevance'] as core.String
            : null,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
        rolePermission: json_.containsKey('rolePermission')
            ? json_['rolePermission'] as core.String
            : null,
        rolePermissionRelevance: json_.containsKey('rolePermissionRelevance')
            ? json_['rolePermissionRelevance'] as core.String
            : null,
      );