decode static method

PurchaseUpdatesResponse decode(
  1. Object result
)

Implementation

static PurchaseUpdatesResponse decode(Object result) {
  result as List<Object?>;
  return PurchaseUpdatesResponse(
    userData: result[0] != null
        ? UserData.decode(result[0]! as List<Object?>)
        : null,
    requestStatus: RequestStatus.values[result[1]! as int],
    receipts: (result[2] as List<Object?>?)!.cast<Receipt?>(),
    hasMore: result[3]! as bool,
  );
}