Event.fromJson constructor

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

Implementation

factory Event.fromJson(Map<String, dynamic> json) {
  return Event(
    type: EventType.getFromJson(json),
  );
}