from static method
Returns enum item which matches int constant
Implementation
static UpgradeToVideoMode from(int val) {
switch (val) {
case PjsipConnectFlutter.kUpgradeToVideoSendRecv:
return UpgradeToVideoMode.SendRecv;
case PjsipConnectFlutter.kUpgradeToVideoInactive:
return UpgradeToVideoMode.Inactive;
case PjsipConnectFlutter.kUpgradeToVideoManual:
return UpgradeToVideoMode.Manual;
default:
return UpgradeToVideoMode.RecvOnly;
}
}