VideoDeviceInfo

The VideoDeviceInfo class that contains the ID and device name of the video devices.

class VideoDeviceInfo {
  const VideoDeviceInfo({this.deviceId, this.deviceName});

  @JsonKey(name: 'deviceId')
  final String? deviceId;
  @JsonKey(name: 'deviceName')
  final String? deviceName;
  factory VideoDeviceInfo.fromJson(Map<String, dynamic> json) =>
      _$VideoDeviceInfoFromJson(json);
  Map<String, dynamic> toJson() => _$VideoDeviceInfoToJson(this);
}

Attributes

deviceId
The device ID.
deviceName
The device name.