Map<String, dynamic> toJson() => { // abbreviated names, because we will store a lot of these. 'e': eventId, 'ts': ts, };