fromMap method

bool fromMap(
  1. Map argsMap
)

Implementation

bool fromMap(Map<dynamic, dynamic> argsMap) {
  int argsCounter = 0;
  argsMap.forEach((key, value) {
    if ((key == PjsipConnectPlatform.kArgFromCallId) && (value is int)) {
      origCallId = value;
      argsCounter += 1;
    } else if ((key == PjsipConnectPlatform.kArgToCallId) && (value is int)) {
      relatedCallId = value;
      argsCounter += 1;
    } else if ((key == PjsipConnectPlatform.kArgToExt) && (value is String)) {
      referTo = value;
      argsCounter += 1;
    }
  });
  return (argsCounter == 3);
}