decode static method
Implementation
static SwitchChannelRequest decode(Object result) {
result as List<Object?>;
return SwitchChannelRequest(
token: result[0] as String?,
channelName: result[1] as String?,
channelOptions: result[2] != null
? JoinChannelOptions.decode(result[2]! as List<Object?>)
: null,
);
}