deserializeResponse method

  1. @override
dynamic deserializeResponse(
  1. ApiClient _apiClient,
  2. Map<String, String> _headers,
  3. ByteData? _body
)
override

Implementation

@override
dynamic deserializeResponse(final ApiClient _apiClient,
    final Map<String, String> _headers, final ByteData? _body) {
  if (_body == null) {
    return ApiException(400,
        "Nullable response body is not allowed for this operation type.");
  }

  var _result = HyperlinksResponse();
  var _jsonData = utf8.decode(
      _body.buffer.asUint8List(_body.offsetInBytes, _body.lengthInBytes));
  var _json = jsonDecode(_jsonData);
  _result.deserialize(_json as Map<String, dynamic>);
  return _result;
}