factory PlayerEvent.fromJson(Map<String, dynamic> json) { return PlayerEvent( timestamp: Timestamp.fromJson(json['timestamp'] as num), value: json['value'] as String, ); }