toJson method
The message payload (the envelope d field), without the type or channel.
Implementation
@override
Map<String, dynamic> toJson() => {
'requestId': requestId,
'principal': principal,
if (sessionRef.isNotEmpty) 'sessionRef': sessionRef,
if (timeoutSeconds != null) 'timeoutSeconds': timeoutSeconds,
};