Stream.fromMap constructor
Implementation
factory Stream.fromMap(Map<String, dynamic> map) {
return Stream(
id: map['id'] as String?,
producerId: map['producerId'] as String? ?? '',
muted: map['muted'] as bool?,
stream: map['stream']
as MediaStream?, // Ensure correct type or handle if conversion is needed
socket_: map['socket_']
as Socket?, // Ensure correct type or handle if conversion is needed
name: map['name'] as String?,
audioID: map['audioID'] as String?,
videoID: map['videoID'] as String?,
).._extraProperties.addAll(map);
}