GoogleCloudPolicysimulatorV1beta1ExplainedPolicy.fromJson constructor

GoogleCloudPolicysimulatorV1beta1ExplainedPolicy.fromJson(
  1. Map _json
)

Implementation

GoogleCloudPolicysimulatorV1beta1ExplainedPolicy.fromJson(core.Map _json)
    : this(
        access: _json.containsKey('access')
            ? _json['access'] as core.String
            : null,
        bindingExplanations: _json.containsKey('bindingExplanations')
            ? (_json['bindingExplanations'] as core.List)
                .map((value) =>
                    GoogleCloudPolicysimulatorV1beta1BindingExplanation
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        fullResourceName: _json.containsKey('fullResourceName')
            ? _json['fullResourceName'] as core.String
            : null,
        policy: _json.containsKey('policy')
            ? GoogleIamV1Policy.fromJson(
                _json['policy'] as core.Map<core.String, core.dynamic>)
            : null,
        relevance: _json.containsKey('relevance')
            ? _json['relevance'] as core.String
            : null,
      );