read method
The end user's purchase id, upgrade, unlocks and purchases, and the products the app sells. The first read makes their purchase id.
Implementation
Future<FFXPurchaseState> read() async {
final askedBy = _auth.currentUser?.id;
final res = await _http.request('GET', '/v1/purchases');
return _adopt(res.body, askedBy);
}