inspectionDownloadRequestKey function

String inspectionDownloadRequestKey(
  1. String route,
  2. Map<String, dynamic>? json
)

Implementation

String inspectionDownloadRequestKey(
  String route,
  Map<String, dynamic>? json,
) {
  if (route == '/image/get') {
    return '$route|${json?['hash'] ?? ''}';
  }
  if (route == '/doc/get') {
    return '$route|${json?['docPath'] ?? ''}';
  }
  return <Object?>[
    route,
    json?['PjNr'],
    json?['E1'],
    json?['E2'],
    json?['E3'],
  ].join('|');
}