parseExecution method
Parses a value to the outputType.
Implementation
E? parseExecution(Object? value) {
switch (outputType) {
case DynCallType.BOOL:
return parseOutputBOOL(value) as E;
case DynCallType.STRING:
return parseOutputSTRING(value) as E?;
case DynCallType.INTEGER:
return parseOutputINTEGER(value) as E?;
case DynCallType.DECIMAL:
return parseOutputDECIMAL(value) as E?;
case DynCallType.JSON:
return parseOutputJSON(value) as E?;
default:
throw StateError("Can't handle type: $outputType");
}
}