ConsentParticipant.fromRemote constructor
ConsentParticipant.fromRemote(
- RemoteParticipantConsent remote
Implementation
factory ConsentParticipant.fromRemote(RemoteParticipantConsent remote) {
return ConsentParticipant(
participantName: remote.screenName,
participantId: remote.rtcParticipantUid,
participantAvatar: Utils.getInitials(remote.screenName),
// default or mapped
consent: remote.recordingConsentStatus ?? "pending",
);
}