GoogleCloudPolicysimulatorV1beta1ExplainedAccess.fromJson constructor

GoogleCloudPolicysimulatorV1beta1ExplainedAccess.fromJson(
  1. Map _json
)

Implementation

GoogleCloudPolicysimulatorV1beta1ExplainedAccess.fromJson(core.Map _json)
    : this(
        accessState: _json.containsKey('accessState')
            ? _json['accessState'] as core.String
            : null,
        errors: _json.containsKey('errors')
            ? (_json['errors'] as core.List)
                .map<GoogleRpcStatus>((value) => GoogleRpcStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        policies: _json.containsKey('policies')
            ? (_json['policies'] as core.List)
                .map<GoogleCloudPolicysimulatorV1beta1ExplainedPolicy>(
                    (value) =>
                        GoogleCloudPolicysimulatorV1beta1ExplainedPolicy
                            .fromJson(
                                value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );