toJson method

  1. @override
Map<String, dynamic> toJson([
  1. dynamic extra
])
override

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "participant_id": participantId.toJson(),
    "audio_source_id": audioSourceId,
    "screen_sharing_audio_source_id": screenSharingAudioSourceId,
    "video_info": videoInfo?.toJson(),
    "screen_sharing_video_info": screenSharingVideoInfo?.toJson(),
    "bio": bio,
    "is_current_user": isCurrentUser,
    "is_speaking": isSpeaking,
    "is_hand_raised": isHandRaised,
    "can_be_muted_for_all_users": canBeMutedForAllUsers,
    "can_be_unmuted_for_all_users": canBeUnmutedForAllUsers,
    "can_be_muted_for_current_user": canBeMutedForCurrentUser,
    "can_be_unmuted_for_current_user": canBeUnmutedForCurrentUser,
    "is_muted_for_all_users": isMutedForAllUsers,
    "is_muted_for_current_user": isMutedForCurrentUser,
    "can_unmute_self": canUnmuteSelf,
    "volume_level": volumeLevel,
    "order": order,
  };
}