toJson method
JSON-like representation for diagnostics and debug panels.
Implementation
Map<String, Object?> toJson() {
return <String, Object?>{
'channel': channel,
'supportedPlatforms':
supportedPlatforms
.map((PixaHostPlatform platform) => platform.name)
.toList()
..sort(),
'maxConcurrentCalls': maxConcurrentCalls,
'supportsCancellation': supportsCancellation,
'hotPathSafe': hotPathSafe,
'backgroundQueue': backgroundQueue,
'maxOutputBytes': maxOutputBytes,
};
}