cancelByScannedTicket static method

Future<AuthResult> cancelByScannedTicket(
  1. String qrcodeId
)

Cancel Scan QRCode

Implementation

static Future<AuthResult> cancelByScannedTicket(String qrcodeId) async {
  Map map = {};
  map.putIfAbsent('qrcodeId', () => qrcodeId);
  map.putIfAbsent('action', () => 'CANCEL');
  final Result result =
      await post('/api/v3/change-qrcode-status', jsonEncode(map));
  return AuthResult(result);
}