toQuery method

String toQuery()

Returns the base64Url encoded credential request that could be used as query in an uri. It is prefixed with key 'iwce='.

Implementation

String toQuery() {
  var json = toJson();
  return 'iwce=${base64UrlEncode(utf8.encode(jsonEncode(json)))}';
}