WebTransportClosedEvent.fromJson constructor

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

Implementation

factory WebTransportClosedEvent.fromJson(Map<String, dynamic> json) {
  return WebTransportClosedEvent(
    transportId: RequestId.fromJson(json['transportId'] as String),
    timestamp: MonotonicTime.fromJson(json['timestamp'] as num),
  );
}