arriveToCheckPoint static method
Sends info to Paygilant server that user has arrived to checkpoint
-param {Checkpoint} checkPoint
Implementation
static Future<void> arriveToCheckPoint(CheckPoint checkpoint) async {
try{
var convertStr = json.encode(checkpoint.getJson());
await _channel.invokeMethod('arriveToCheckPoint', <String, dynamic>{
'checkpoint': convertStr,
});
} catch (e) {
throw(e.toString());
}
}