FirewallInfo.fromJson constructor

FirewallInfo.fromJson(
  1. Map json_
)

Implementation

FirewallInfo.fromJson(core.Map json_)
    : this(
        action: json_.containsKey('action')
            ? json_['action'] as core.String
            : null,
        direction: json_.containsKey('direction')
            ? json_['direction'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        firewallRuleType: json_.containsKey('firewallRuleType')
            ? json_['firewallRuleType'] as core.String
            : null,
        networkUri: json_.containsKey('networkUri')
            ? json_['networkUri'] as core.String
            : null,
        policy: json_.containsKey('policy')
            ? json_['policy'] as core.String
            : null,
        priority: json_.containsKey('priority')
            ? json_['priority'] as core.int
            : null,
        targetServiceAccounts: json_.containsKey('targetServiceAccounts')
            ? (json_['targetServiceAccounts'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        targetTags: json_.containsKey('targetTags')
            ? (json_['targetTags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );