parse static method
Implementation
static parse(PBFnExpression pbFnExpression) {
switch (pbFnExpression.identity) {
case "genericFn":
return PduiGenericFn(pbFnExpression).resolve();
case "debugPrint":
PduiDebugPrint(pbFnExpression.debugPrint).resolve();
break;
case "navigation":
PduiNavigation(pbFnExpression.navigation).resolve();
break;
case "popNavigation":
PduiPopNavigation(pbFnExpression.popNavigation).resolve();
break;
default:
throw Exception(
"Don“t know how to create fn from '${pbFnExpression.identity}'",
);
}
}