toJson method
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(),
};
}