ChannelSnapshot.fromTransferable constructor
Implementation
factory ChannelSnapshot.fromTransferable(Map<Object?, Object?> map) =>
ChannelSnapshot(
sent: map['sent'] as int? ?? 0,
recv: map['recv'] as int? ?? 0,
dropped: map['dropped'] as int? ?? 0,
closed: map['closed'] as int? ?? 0,
trySendOk: map['trySendOk'] as int? ?? 0,
trySendFail: map['trySendFail'] as int? ?? 0,
tryRecvOk: map['tryRecvOk'] as int? ?? 0,
tryRecvEmpty: map['tryRecvEmpty'] as int? ?? 0,
sendP50: map['sendP50'] as double?,
sendP95: map['sendP95'] as double?,
sendP99: map['sendP99'] as double?,
recvP50: map['recvP50'] as double?,
recvP95: map['recvP95'] as double?,
recvP99: map['recvP99'] as double?,
recvFirstNs: map['recvFirstNs'] as int? ?? 0,
recvLastNs: map['recvLastNs'] as int? ?? 0,
sendFirstNs: map['sendFirstNs'] as int? ?? 0,
sendLastNs: map['sendLastNs'] as int? ?? 0,
);