buildCallParameters method

Map<String, String> buildCallParameters(
  1. Map<String, dynamic>? inputParameters
)

Build call parameters using inputParameters.

Implementation

Map<String, String> buildCallParameters(
    Map<String, dynamic>? inputParameters) {
  // ignore: omit_local_variable_types
  Map<String, String> callParameters = {};

  if (inputParameters == null || inputParameters.isEmpty) {
    return callParameters;
  }

  for (var k in input) {
    var val = inputParameters[k];
    if (val != null) {
      callParameters[k] = '$val';
    }
  }

  return callParameters;
}