Firewall.fromJson constructor
Firewall.fromJson(
- Map json_
Implementation
Firewall.fromJson(core.Map json_)
: this(
allowed: json_.containsKey('allowed')
? (json_['allowed'] as core.List)
.map((value) => FirewallAllowed.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
creationTimestamp: json_.containsKey('creationTimestamp')
? json_['creationTimestamp'] as core.String
: null,
denied: json_.containsKey('denied')
? (json_['denied'] as core.List)
.map((value) => FirewallDenied.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
destinationRanges: json_.containsKey('destinationRanges')
? (json_['destinationRanges'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
direction: json_.containsKey('direction')
? json_['direction'] as core.String
: null,
disabled: json_.containsKey('disabled')
? json_['disabled'] as core.bool
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
logConfig: json_.containsKey('logConfig')
? FirewallLogConfig.fromJson(
json_['logConfig'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
network: json_.containsKey('network')
? json_['network'] as core.String
: null,
priority: json_.containsKey('priority')
? json_['priority'] as core.int
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
sourceRanges: json_.containsKey('sourceRanges')
? (json_['sourceRanges'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
sourceServiceAccounts: json_.containsKey('sourceServiceAccounts')
? (json_['sourceServiceAccounts'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
sourceTags: json_.containsKey('sourceTags')
? (json_['sourceTags'] as core.List)
.map((value) => value as core.String)
.toList()
: 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,
);