decode static method
Implementation
static CreateEngineRequest decode(Object result) {
result as List<Object?>;
return CreateEngineRequest(
appKey: result[0] as String?,
logDir: result[1] as String?,
serverAddresses: result[2] != null
? RtcServerAddresses.decode(result[2]! as List<Object?>)
: null,
logLevel: result[3] as int?,
audioAutoSubscribe: result[4] as bool?,
videoAutoSubscribe: result[5] as bool?,
disableFirstJoinUserCreateChannel: result[6] as bool?,
audioDisableOverrideSpeakerOnReceiver: result[7] as bool?,
audioDisableSWAECOnHeadset: result[8] as bool?,
audioAINSEnabled: result[9] as bool?,
serverRecordAudio: result[10] as bool?,
serverRecordVideo: result[11] as bool?,
serverRecordMode: result[12] as int?,
serverRecordSpeaker: result[13] as bool?,
publishSelfStream: result[14] as bool?,
videoCaptureObserverEnabled: result[15] as bool?,
videoEncodeMode: result[16] as int?,
videoDecodeMode: result[17] as int?,
videoSendMode: result[18] as int?,
videoH265Enabled: result[19] as bool?,
mode1v1Enabled: result[20] as bool?,
);
}