fromEvents static method
The latest published state: every info event's sections, in event
order, later sections replacing earlier ones. What the panel and the
info action both show, so they cannot disagree.
Implementation
static ServerInfo fromEvents(Iterable<ServerEvent> events) {
var sections = <String, Object?>{};
for (var event in events) {
if (event.channel != infoChannel) continue;
sections.addAll(event.payload);
}
return fromJson(sections);
}