toJson method
JSON-like representation for debug surfaces.
Implementation
Map<String, Object?> toJson() {
return <String, Object?>{
'modules': modules,
'builtInModules': builtInModules,
'hostLinkedModules': hostLinkedModules,
'assetModules': assetModules,
'linkableModules': linkableModules,
'fetchers': fetchers,
'videoFrameFetchers': videoFrameFetchers,
'videoFrameEncodedOutputFetchers': videoFrameEncodedOutputFetchers,
'videoFrameSourceKinds': videoFrameSourceKinds,
'videoFrameOutputMimeTypes': videoFrameOutputMimeTypes,
'decoders': decoders,
'processors': processors,
'cacheStores': cacheStores,
'moduleSnapshots': <Map<String, Object?>>[
for (final PixaRuntimePluginModuleSnapshot module in moduleSnapshots)
module.toJson(),
],
'canUseSingleHostBinary': canUseSingleHostBinary,
};
}