fromMap method

bool fromMap(
  1. Map argsMap
)

Implementation

bool fromMap(Map<dynamic, dynamic> argsMap) {
  int argsCounter=0;
  argsMap.forEach((key, value) {
    if((key == PjsipConnectPlatform.kArgDvcName)&&(value is String)) { name = value; argsCounter+=1; }
    if((key == PjsipConnectPlatform.kArgDvcGuid)&&(value is String)) { guid = value; argsCounter+=1; }
    if((key == _kArgDvcIsSel)&&(value is bool)) { isSelected = value; }
  });
  return (argsCounter==2);
}