toJson method

Map<String, dynamic> toJson()

Converts an AudioDevices instance to a JSON map.

Returns a JSON map representation of the AudioDevices instance.

Implementation

Map<String, dynamic> toJson() => {
      "id": id,
      "type": type,
      "name": name,
    };