toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> jsonData = <String, dynamic>{};
  jsonData['data'] = data;
  jsonData['sampleRate'] = sampleRate;
  jsonData['channel'] = channel;
  return jsonData;
}