getParamValueAsText function
- GetGeneratorDetailResponseModel response,
- int piid
Returns the raw value of the parameter matching the given piid within
the response's list of parameters, as a string.
Returns null if the parameter with the given piid does not exist.
Implementation
String? getParamValueAsText(
GetGeneratorDetailResponseModel response,
int piid,
) {
return response.parameters
?.firstWhereOrNull((element) => element.pdiid == piid)
?.$value;
}