fromData static method

Packet fromData(
  1. PacketDataArgs data
)

Implementation

static Packet fromData(PacketDataArgs data) {
  return Packet(
      data.sequence!,
      data.source_port!,
      data.source_channel!,
      data.destination_port!,
      data.destination_channel!,
      data.data!,
      Height.fromData(data.timeout_height!),
      double.parse(data.timeout_timeStamp!));
}