Policy.fromJson constructor
Policy.fromJson(
- Map json_
Implementation
Policy.fromJson(core.Map json_)
: this(
alternativeNameServerConfig:
json_.containsKey('alternativeNameServerConfig')
? PolicyAlternativeNameServerConfig.fromJson(
json_['alternativeNameServerConfig']
as core.Map<core.String, core.dynamic>)
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
enableInboundForwarding: json_.containsKey('enableInboundForwarding')
? json_['enableInboundForwarding'] as core.bool
: null,
enableLogging: json_.containsKey('enableLogging')
? json_['enableLogging'] as core.bool
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
networks: json_.containsKey('networks')
? (json_['networks'] as core.List)
.map((value) => PolicyNetwork.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);