getPayments method
Implementation
@override
Future<List<OfflinePayment>> getPayments() async {
try {
final result = await methodChannel.invokeMethod<List>('getPayments');
if (result == null) {
throw getChannelStateError("getPayments()", "returned null");
}
return result
.map((e) => OfflinePayment.fromJson(castToMap(e)))
.toList();
} on PlatformException catch (e) {
throw OfflinePaymentQueueError(e.code, e.message, e.details);
}
}