FirewallPolicyRule.fromJson constructor

FirewallPolicyRule.fromJson(
  1. Map json_
)

Implementation

FirewallPolicyRule.fromJson(core.Map json_)
    : this(
        action: json_.containsKey('action')
            ? json_['action'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        direction: json_.containsKey('direction')
            ? json_['direction'] as core.String
            : null,
        disabled: json_.containsKey('disabled')
            ? json_['disabled'] as core.bool
            : null,
        enableLogging: json_.containsKey('enableLogging')
            ? json_['enableLogging'] as core.bool
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        match: json_.containsKey('match')
            ? FirewallPolicyRuleMatcher.fromJson(
                json_['match'] as core.Map<core.String, core.dynamic>)
            : null,
        priority: json_.containsKey('priority')
            ? json_['priority'] as core.int
            : null,
        ruleName: json_.containsKey('ruleName')
            ? json_['ruleName'] as core.String
            : null,
        ruleTupleCount: json_.containsKey('ruleTupleCount')
            ? json_['ruleTupleCount'] as core.int
            : null,
        securityProfileGroup: json_.containsKey('securityProfileGroup')
            ? json_['securityProfileGroup'] as core.String
            : null,
        targetResources: json_.containsKey('targetResources')
            ? (json_['targetResources'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        targetSecureTags: json_.containsKey('targetSecureTags')
            ? (json_['targetSecureTags'] as core.List)
                .map((value) => FirewallPolicyRuleSecureTag.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        targetServiceAccounts: json_.containsKey('targetServiceAccounts')
            ? (json_['targetServiceAccounts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tlsInspect: json_.containsKey('tlsInspect')
            ? json_['tlsInspect'] as core.bool
            : null,
      );