NetworkConfig.fromJson constructor
NetworkConfig.fromJson(
- Map json_
Implementation
NetworkConfig.fromJson(core.Map json_)
: this(
connectMode: json_.containsKey('connectMode')
? json_['connectMode'] as core.String
: null,
ipAddresses: json_.containsKey('ipAddresses')
? (json_['ipAddresses'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
modes: json_.containsKey('modes')
? (json_['modes'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
network: json_.containsKey('network')
? json_['network'] as core.String
: null,
reservedIpRange: json_.containsKey('reservedIpRange')
? json_['reservedIpRange'] as core.String
: null,
);