Network.fromJson constructor
Network.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Network.fromJson(Map<String, dynamic> json) {
return Network(
destinationDomain: json['DestinationDomain'] as String?,
destinationIpV4: json['DestinationIpV4'] as String?,
destinationIpV6: json['DestinationIpV6'] as String?,
destinationPort: json['DestinationPort'] as int?,
direction: (json['Direction'] as String?)?.toNetworkDirection(),
openPortRange: json['OpenPortRange'] != null
? PortRange.fromJson(json['OpenPortRange'] as Map<String, dynamic>)
: null,
protocol: json['Protocol'] as String?,
sourceDomain: json['SourceDomain'] as String?,
sourceIpV4: json['SourceIpV4'] as String?,
sourceIpV6: json['SourceIpV6'] as String?,
sourceMac: json['SourceMac'] as String?,
sourcePort: json['SourcePort'] as int?,
);
}