toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'contextId': contextId.toJson(),
    'contextType': contextType.toJson(),
    'contextState': contextState.toJson(),
    'callbackBufferSize': callbackBufferSize,
    'maxOutputChannelCount': maxOutputChannelCount,
    'sampleRate': sampleRate,
    if (realtimeData != null) 'realtimeData': realtimeData!.toJson(),
  };
}