updateTerminalFromPro method

Future<bool> updateTerminalFromPro({
  1. dynamic terminalId,
  2. dynamic label,
  3. dynamic direction,
})

Implementation

Future<bool> updateTerminalFromPro({terminalId, label, direction}) async {
  Map params = {"terminalId": terminalId};
  if (direction != null) params.addAll({'direction': direction});
  if (label != null) params.addAll({'label': label});
  NetworkResponse response = await _api.updateTerminalFromPro(params);
  return response.data ?? false;
}