WebTransportCreatedEvent.fromJson constructor
Implementation
factory WebTransportCreatedEvent.fromJson(Map<String, dynamic> json) {
return WebTransportCreatedEvent(
transportId: RequestId.fromJson(json['transportId'] as String),
url: json['url'] as String,
timestamp: MonotonicTime.fromJson(json['timestamp'] as num),
initiator: json.containsKey('initiator')
? Initiator.fromJson(json['initiator'] as Map<String, dynamic>)
: null,
);
}