AudioDevices.fromJson constructor

AudioDevices.fromJson(
  1. Map<String, dynamic> json
)

Creates an AudioDevices instance from a JSON map.

json: The JSON map containing the audio device data.

Returns an instance of AudioDevices.

Implementation

factory AudioDevices.fromJson(Map<String, dynamic> json) => AudioDevices(
      id: json["id"],
      type: json["type"],
      name: json["name"],
    );