toJson method
Converts an AudioDevices object to a JSON map.
Returns a JSON map representation of the AudioDevices object.
Example usage:
AudioDevices device = AudioDevices(id: "1", type: "speaker", name: "Speaker 1");
Map<String, dynamic> jsonMap = device.toJson();
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"type": type,
"name": name,
};