eventToJson<T extends RawEvent> function

Map<String, dynamic> eventToJson<T extends RawEvent>(
  1. Map<String, dynamic> json,
  2. T event
)

Implementation

Map<String, dynamic> eventToJson<T extends RawEvent>(Map<String, dynamic> json, T event) {
  json["type"] = event.type.toString();
  return json;
}