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