toJson method

  1. @override
Map<String, dynamic> toJson()
override

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,
};