CredentialRequest.fromQuery constructor
Searches base64URL encoded Response from queryParameters
and decodes it.
Expected key is 'iwce'
Implementation
CredentialRequest.fromQuery(Map<String, dynamic> queryParameters) {
if (!queryParameters.containsKey('iwce')) {
throw FormatException('Could not find expected query parameter');
}
Map<String, dynamic> json = jsonDecode(utf8.decode(
base64Decode(Base64Codec().normalize(queryParameters['iwce']))));
_fromJson(json);
}