GoogleCloudPolicysimulatorV1ExplainedAccess.fromJson constructor

GoogleCloudPolicysimulatorV1ExplainedAccess.fromJson(
  1. Map json_
)

Implementation

GoogleCloudPolicysimulatorV1ExplainedAccess.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((value) => GoogleRpcStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        policies: json_.containsKey('policies')
            ? (json_['policies'] as core.List)
                .map((value) =>
                    GoogleCloudPolicysimulatorV1ExplainedPolicy.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );