getActiveProducts static method

Future<List<IaphubActiveProduct>> getActiveProducts({
  1. List<String> includeSubscriptionStates = const [],
})

Get active products

Implementation

static Future<List<IaphubActiveProduct>> getActiveProducts(
    {List<String> includeSubscriptionStates = const []}) async {
  final data = await _invokeMethodAndParseResult<List<Map<String, dynamic>>>(
      'getActiveProducts',
      {"includeSubscriptionStates": includeSubscriptionStates});

  return data.map((item) => IaphubActiveProduct.fromJson(item)).toList();
}