getDIDList method

Future<SDNDIDListResponse> getDIDList({
  1. String? address,
})
inherited

Implementation

Future<SDNDIDListResponse> getDIDList({String? address}) async {
  final requestUri = Uri(path: '_api/client/unstable/address/$address');
  final request = Request('GET', baseUri!.resolveUri(requestUri));
  request.headers['content-type'] = 'application/json';

  final response = await httpClient.send(request);
  final responseBody = await response.stream.toBytes();
  if (response.statusCode != 200) unexpectedResponse(response, responseBody);
  final responseString = utf8.decode(responseBody);
  final json = jsonDecode(responseString);
  return SDNDIDListResponse.fromJson(json as Map<String, Object?>);
}