audioDevicesFromJson function
Converts JSON string into a list of AudioDevices.
Parses a JSON string and returns a list of AudioDevices objects. This function is useful for decoding JSON data fetched from an API or stored locally.
str
: The JSON string to be parsed.
Returns a list of AudioDevices objects.
Implementation
List<AudioDevices> audioDevicesFromJson(String str) => List<AudioDevices>.from(
json.decode(str).map((x) => AudioDevices.fromJson(x)));