fromMap method
Returns true when even's atrributes parsed successfully
Implementation
bool fromMap(Map<dynamic, dynamic> argsMap) {
int argsCounter=0;
argsMap.forEach((key, value) {
if((key == PjsipConnectPlatform.kArgPlayerId)&&(value is int)) { playerId = value; argsCounter+=1; } else
if((key == PjsipConnectPlatform.kPlayerState)&&(value is int)) { state = PlayerState.from(value); argsCounter+=1; }
});
return (argsCounter==2);
}