toJson method
Encodes this CockpitRemoteSessionStatus as a JSON object.
Implementation
Map<String, Object?> toJson() => <String, Object?>{
'sessionId': sessionId,
'platform': platform,
'transportType': transportType,
if (currentRouteName != null) 'currentRouteName': currentRouteName,
'capabilities': capabilities.toJson(),
'recordingCapabilities': recordingCapabilities.toJson(),
'snapshot': snapshot.toJson(),
if (environment != null) 'environment': environment!.toJson(),
if (processId != null) 'processId': processId,
if (activeRecording != null) 'activeRecording': activeRecording!.toJson(),
if (activePerformance != null)
'activePerformance': activePerformance!.toJson(),
if (performanceCapture) 'performanceCapture': true,
if (buildMode != null) 'build': buildMode,
};