SessionEvent.fromJson constructor
Deserialize from JSON, dispatching on the 'type' field.
Implementation
factory SessionEvent.fromJson(Map<String, dynamic> json) {
final type = json['type'] as String;
return _factories[type]?.call(json) ?? UnknownEvent._fromJson(json, type);
}