ConsentParticipant.fromRemote constructor

ConsentParticipant.fromRemote(
  1. 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",
  );
}