toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['vidoeEnabled'] = _vidoeEnabled;
  map['role'] = _role;
  map['clientId'] = _clientId;
  map['videoMuted'] = _videoMuted;
  /* if (_data != null) {
    map['data'] = _data?.toJson();
  }*/
  if (_permissions != null) {
    map['permissions'] = _permissions?.toJson();
  }
  map['name'] = _name;
  map['audioMuted'] = _audioMuted;
  map['audioEnabled'] = _audioEnabled;
  map['user_ref'] = _userRef;
  return map;
}