SingleEdgeResponse.fromJson constructor

SingleEdgeResponse.fromJson(
  1. Map json_
)

Implementation

SingleEdgeResponse.fromJson(core.Map json_)
  : this(
      destinationEgressLocation:
          json_.containsKey('destinationEgressLocation')
              ? EdgeLocation.fromJson(
                json_['destinationEgressLocation']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      destinationRouter: json_['destinationRouter'] as core.String?,
      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?,
    );