fromMap method

bool fromMap(
  1. Map argsMap
)

Implementation

bool fromMap(Map<dynamic, dynamic> argsMap) {
  int argsCounter=0;
  argsMap.forEach((key, value) {
    if((key == PjsipConnectPlatform.kArgWithVideo)&&(value is bool)) { withVideo = value; argsCounter+=1; } else
    if((key == PjsipConnectPlatform.kArgCallId)&&(value is int))     { callId = value; argsCounter+=1; } else
    if((key == PjsipConnectPlatform.kFrom)&&(value is String))       { from   = value; argsCounter+=1; } else
    if((key == PjsipConnectPlatform.kTo)&&(value is String))         { to     = value; argsCounter+=1; }
  });
  return (argsCounter==4);
}