getRealtimeData method Null safety

Future<ContextRealtimeData> getRealtimeData(
  1. GraphObjectId contextId
)

Fetch the realtime data from the registered contexts.

Implementation

Future<ContextRealtimeData> getRealtimeData(GraphObjectId contextId) async {
  var result = await _client.send('WebAudio.getRealtimeData', {
    'contextId': contextId,
  });
  return ContextRealtimeData.fromJson(
      result['realtimeData'] as Map<String, dynamic>);
}