ProbingDetails.fromJson constructor

ProbingDetails.fromJson(
  1. Map json_
)

Implementation

ProbingDetails.fromJson(core.Map json_)
  : this(
      abortCause: json_['abortCause'] as core.String?,
      destinationEgressLocation:
          json_.containsKey('destinationEgressLocation')
              ? EdgeLocation.fromJson(
                json_['destinationEgressLocation']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      edgeResponses:
          (json_['edgeResponses'] as core.List?)
              ?.map(
                (value) => SingleEdgeResponse.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
              )
              .toList(),
      endpointInfo:
          json_.containsKey('endpointInfo')
              ? EndpointInfo.fromJson(
                json_['endpointInfo'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      error:
          json_.containsKey('error')
              ? Status.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      probedAllDevices: json_['probedAllDevices'] as core.bool?,
      probingLatency:
          json_.containsKey('probingLatency')
              ? LatencyDistribution.fromJson(
                json_['probingLatency']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      result: json_['result'] as core.String?,
      sentProbeCount: json_['sentProbeCount'] as core.int?,
      successfulProbeCount: json_['successfulProbeCount'] as core.int?,
      verifyTime: json_['verifyTime'] as core.String?,
    );