getOperation static method

String getOperation(
  1. Uint8List bytes
)

Get operation type from request bytes

Implementation

static String getOperation(Uint8List bytes) {
  final json = utf8.decode(bytes);
  final data = jsonDecode(json) as Map<String, dynamic>;
  return data['operation'] as String? ?? 'unknown';
}