PortProbeAction.fromJson constructor

PortProbeAction.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PortProbeAction.fromJson(Map<String, dynamic> json) {
  return PortProbeAction(
    blocked: json['blocked'] as bool?,
    portProbeDetails: (json['portProbeDetails'] as List?)
        ?.whereNotNull()
        .map((e) => PortProbeDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}