Event(Map<String, dynamic> json) { type = json["type"]; target = json["target"]; attachment = json["attachment"]; action = json["action"]; direction = json["direction"]; mode = json["mode"]; }