PlayerEvent.fromJson constructor

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

Implementation

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