InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.fromJson constructor

InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.fromJson(
  1. Map json_
)

Implementation

InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy.fromJson(
    core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        rules: json_.containsKey('rules')
            ? (json_['rules'] as core.List)
                .map((value) => FirewallPolicyRule.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        shortName: json_.containsKey('shortName')
            ? json_['shortName'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );