toJson method
Implementation
@override
Map<String, Object?> toJson() => {
'type': 'invalidate',
'channel': channel,
'seq': seq,
'previousSeq': previousSeq,
'eventId': eventId,
'subscriptions': subscriptions.map((item) => item.toJson()).toList(),
};