AudioDevices class

Represents an audio device with an ID, type, and name.

This class models an audio device, providing properties to store its ID, type, and name. It includes a factory constructor for creating instances from JSON data and a method for converting instances back to JSON.

Constructors

AudioDevices({String? id, String? type, String? name})
Constructs an instance of AudioDevices.
AudioDevices.fromJson(Map<String, dynamic> json)
Creates an AudioDevices instance from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String?
The unique identifier of the audio device.
getter/setter pair
name String?
The name of the audio device.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String?
The type of the audio device (e.g., speaker, microphone).
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts an AudioDevices instance to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited