FirewallPolicyRuleMatcher.fromJson constructor

FirewallPolicyRuleMatcher.fromJson(
  1. Map json_
)

Implementation

FirewallPolicyRuleMatcher.fromJson(core.Map json_)
    : this(
        destAddressGroups: json_.containsKey('destAddressGroups')
            ? (json_['destAddressGroups'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        destFqdns: json_.containsKey('destFqdns')
            ? (json_['destFqdns'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        destIpRanges: json_.containsKey('destIpRanges')
            ? (json_['destIpRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        destRegionCodes: json_.containsKey('destRegionCodes')
            ? (json_['destRegionCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        destThreatIntelligences: json_.containsKey('destThreatIntelligences')
            ? (json_['destThreatIntelligences'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        layer4Configs: json_.containsKey('layer4Configs')
            ? (json_['layer4Configs'] as core.List)
                .map((value) =>
                    FirewallPolicyRuleMatcherLayer4Config.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        srcAddressGroups: json_.containsKey('srcAddressGroups')
            ? (json_['srcAddressGroups'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        srcFqdns: json_.containsKey('srcFqdns')
            ? (json_['srcFqdns'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        srcIpRanges: json_.containsKey('srcIpRanges')
            ? (json_['srcIpRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        srcRegionCodes: json_.containsKey('srcRegionCodes')
            ? (json_['srcRegionCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        srcSecureTags: json_.containsKey('srcSecureTags')
            ? (json_['srcSecureTags'] as core.List)
                .map((value) => FirewallPolicyRuleSecureTag.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        srcThreatIntelligences: json_.containsKey('srcThreatIntelligences')
            ? (json_['srcThreatIntelligences'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );