Map<String, Object?> toJson() => { 'mxid': mxid, 'sender': sender, 'signatures': signatures .map((k, v) => MapEntry(k, v.map((k, v) => MapEntry(k, v)))), 'token': token, };