AudioDevices.fromJson constructor
Creates an instance of AudioDevices from a JSON object.
Takes a JSON map json
and converts it to an AudioDevices object.
Example usage:
Map<String, dynamic> jsonMap = {"id": "1", "type": "speaker", "name": "Speaker 1"};
AudioDevices device = AudioDevices.fromJson(jsonMap);
Implementation
factory AudioDevices.fromJson(Map<String, dynamic> json) => AudioDevices(
id: json["id"],
type: json["type"],
name: json["name"],
);