SecurityPolicyRuleNetworkMatcher.fromJson constructor

SecurityPolicyRuleNetworkMatcher.fromJson(
  1. Map json_
)

Implementation

SecurityPolicyRuleNetworkMatcher.fromJson(core.Map json_)
    : this(
        destIpRanges: json_.containsKey('destIpRanges')
            ? (json_['destIpRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        destPorts: json_.containsKey('destPorts')
            ? (json_['destPorts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        ipProtocols: json_.containsKey('ipProtocols')
            ? (json_['ipProtocols'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        srcAsns: json_.containsKey('srcAsns')
            ? (json_['srcAsns'] as core.List)
                .map((value) => value as core.int)
                .toList()
            : null,
        srcIpRanges: json_.containsKey('srcIpRanges')
            ? (json_['srcIpRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        srcPorts: json_.containsKey('srcPorts')
            ? (json_['srcPorts'] 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,
        userDefinedFields: json_.containsKey('userDefinedFields')
            ? (json_['userDefinedFields'] as core.List)
                .map((value) =>
                    SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );