GoogleIamV1Policy.fromJson constructor

GoogleIamV1Policy.fromJson(
  1. Map _json
)

Implementation

GoogleIamV1Policy.fromJson(core.Map _json)
    : this(
        auditConfigs: _json.containsKey('auditConfigs')
            ? (_json['auditConfigs'] as core.List)
                .map((value) => GoogleIamV1AuditConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        bindings: _json.containsKey('bindings')
            ? (_json['bindings'] as core.List)
                .map((value) => GoogleIamV1Binding.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        etag: _json.containsKey('etag') ? _json['etag'] as core.String : null,
        version: _json.containsKey('version')
            ? _json['version'] as core.int
            : null,
      );