getPurchaseAttempts method

  1. @override
Future<InappifySdkResult<List<InappifyPurchaseAttempt>>> getPurchaseAttempts()
override

Implementation

@override
Future<InappifySdkResult<List<InappifyPurchaseAttempt>>>
getPurchaseAttempts() => _invokeResult(
  method: InappifyChannelContract.getPurchaseAttempts,
  payload: const {},
  decodeData: (map) => List.unmodifiable(
    (map['attempts'] as List).map(
      (value) => InappifyPurchaseAttempt.fromMap(
        Map<String, dynamic>.from(value as Map),
      ),
    ),
  ),
);