getCustomer method
Get my customer info
Implementation
@override
Future<ResultOf<ProgBonusCustomer?>> getCustomer() async {
return ResultOf.tryAsync(() async {
final res = await _get('api/v1/customer');
_logResponse(res);
return successWith(
ProgBonusCustomer.fromJson(
jsonDecode(res.body) as Map<String, dynamic>),
);
});
}