ConfigManagementPolicyController.fromJson constructor

ConfigManagementPolicyController.fromJson(
  1. Map json_
)

Implementation

ConfigManagementPolicyController.fromJson(core.Map json_)
    : this(
        auditIntervalSeconds: json_.containsKey('auditIntervalSeconds')
            ? json_['auditIntervalSeconds'] as core.String
            : null,
        enabled: json_.containsKey('enabled')
            ? json_['enabled'] as core.bool
            : null,
        exemptableNamespaces: json_.containsKey('exemptableNamespaces')
            ? (json_['exemptableNamespaces'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        logDeniesEnabled: json_.containsKey('logDeniesEnabled')
            ? json_['logDeniesEnabled'] as core.bool
            : null,
        monitoring: json_.containsKey('monitoring')
            ? ConfigManagementPolicyControllerMonitoring.fromJson(
                json_['monitoring'] as core.Map<core.String, core.dynamic>)
            : null,
        mutationEnabled: json_.containsKey('mutationEnabled')
            ? json_['mutationEnabled'] as core.bool
            : null,
        referentialRulesEnabled: json_.containsKey('referentialRulesEnabled')
            ? json_['referentialRulesEnabled'] as core.bool
            : null,
        templateLibraryInstalled:
            json_.containsKey('templateLibraryInstalled')
                ? json_['templateLibraryInstalled'] as core.bool
                : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );