grantConsent method

Future<Consent> grantConsent({
  1. required Map<String, dynamic> body,
})

Grant consent POST /v1/consent/grant

Implementation

Future<Consent> grantConsent({required Map<String, dynamic> body}) async {
  final path = '/v1/consent/grant';
  final res = await _request(
'POST',
    path,
    body: body,
  );
  return Consent.fromJson(Map<String, dynamic>.from(res as Map));
}