InputDeviceNetworkSettings.fromJson constructor
InputDeviceNetworkSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory InputDeviceNetworkSettings.fromJson(Map<String, dynamic> json) {
return InputDeviceNetworkSettings(
dnsAddresses: (json['dnsAddresses'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
gateway: json['gateway'] as String?,
ipAddress: json['ipAddress'] as String?,
ipScheme: (json['ipScheme'] as String?)?.toInputDeviceIpScheme(),
subnetMask: json['subnetMask'] as String?,
);
}