AcceptedEvent.fromJson constructor

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

Implementation

factory AcceptedEvent.fromJson(Map<String, dynamic> json) {
  return AcceptedEvent(
    port: json['port'] as int,
    connectionId: json['connectionId'] as String,
  );
}