import 'package:json_annotation/json_annotation.dart';

part 'meeting_room_user.g.dart';


@JsonSerializable()
class MeetingRoomUser extends Object{

  @JsonKey(name: 'uid')
  String uid;

  @JsonKey(name: 'connectId')
  String connectId;

  @JsonKey(name: 'account')
  String account;

  @JsonKey(name: 'enableMicr')
  bool enableMicr;

  @JsonKey(name: 'enableCamera')
  bool enableCamera;

  @JsonKey(name: 'screenShareId')
  String screenShareId;

  @JsonKey(name: 'userName')
  String userName;

  @JsonKey(name: 'roleId')
  String roleId;

  @JsonKey(name: 'roleName')
  String roleName;

  @JsonKey(name: 'isRoomManager')
  bool isRoomManager;

  @JsonKey(name: 'volume')
  double? volume = 0.0;

  @JsonKey(name: 'enableShare')
  bool? enableShare = false;

  MeetingRoomUser(this.uid,this.connectId,this.account,this.enableMicr,this.enableCamera,this.screenShareId,this.userName,this.roleId,this.roleName,this.isRoomManager,this.volume,this.enableShare);

  factory MeetingRoomUser.fromJson(Map<String, dynamic> srcJson) => _$MeetingRoomUserFromJson(srcJson);

}


