NetworkConnectionAction.fromJson constructor
NetworkConnectionAction.fromJson(
- Map<String, dynamic> json
)
Implementation
factory NetworkConnectionAction.fromJson(Map<String, dynamic> json) {
return NetworkConnectionAction(
blocked: json['blocked'] as bool?,
connectionDirection: json['connectionDirection'] as String?,
localIpDetails: json['localIpDetails'] != null
? LocalIpDetails.fromJson(
json['localIpDetails'] as Map<String, dynamic>)
: null,
localPortDetails: json['localPortDetails'] != null
? LocalPortDetails.fromJson(
json['localPortDetails'] as Map<String, dynamic>)
: null,
protocol: json['protocol'] as String?,
remoteIpDetails: json['remoteIpDetails'] != null
? RemoteIpDetails.fromJson(
json['remoteIpDetails'] as Map<String, dynamic>)
: null,
remotePortDetails: json['remotePortDetails'] != null
? RemotePortDetails.fromJson(
json['remotePortDetails'] as Map<String, dynamic>)
: null,
);
}