GoogleCloudPolicysimulatorV1beta1BindingExplanation.fromJson constructor

GoogleCloudPolicysimulatorV1beta1BindingExplanation.fromJson(
  1. Map _json
)

Implementation

GoogleCloudPolicysimulatorV1beta1BindingExplanation.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, item) => core.MapEntry(
                  key,
                  GoogleCloudPolicysimulatorV1beta1BindingExplanationAnnotatedMembership
                      .fromJson(item 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,
      );