jsonMap method
Implementation
@override
Map<String, Object> jsonMap({bool serializeChannel: false}) {
Map<String, Object> map = new Map<String, Object>()..['session'] = session;
if (name != null) {
map['name'] = name!;
}
if (userId != null) {
map['userId'] = userId!;
}
map['channel'] = (serializeChannel ? channel.jsonMap() : channel.channelId);
if (mute != null) {
map['mute'] = mute!;
}
if (deaf != null) {
map['deaf'] = deaf!;
}
if (suppress != null) {
map['suppress'] = suppress!;
}
if (selfMute != null) {
map['selfMute'] = selfMute!;
}
if (selfDeaf != null) {
map['selfDeaf'] = selfDeaf!;
}
if (texture != null) {
map['texture'] = texture!;
}
if (comment != null) {
map['comment'] = comment!;
}
if (hash != null) {
map['hash'] = hash!;
}
if (commentHash != null) {
map['commentHash'] = commentHash!;
}
if (textureHash != null) {
map['textureHash'] = textureHash!;
}
if (prioritySpeaker != null) {
map['prioritySpeaker'] = prioritySpeaker!;
}
if (recording != null) {
map['recording'] = recording!;
}
return map;
}