ConsentParticipant.fromRemoteParticipant constructor

ConsentParticipant.fromRemoteParticipant(
  1. RemoteParticipant remote
)

Implementation

factory ConsentParticipant.fromRemoteParticipant(RemoteParticipant remote) {
  return ConsentParticipant(
    participantName: remote.name,
    participantId: remote.identity,
    participantAvatar: Utils.getInitials(remote.name),
    // default or mapped
    consent: "pending",
  );
}