PortProbeDetail.fromJson constructor

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

Implementation

factory PortProbeDetail.fromJson(Map<String, dynamic> json) {
  return PortProbeDetail(
    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,
    remoteIpDetails: json['remoteIpDetails'] != null
        ? RemoteIpDetails.fromJson(
            json['remoteIpDetails'] as Map<String, dynamic>)
        : null,
  );
}