toJson method

Map<String, dynamic> toJson()

Get the cache key for the request.

Implementation

Map<String, dynamic> toJson() {
  return {
    'data': data,
    'requestOptions': {
      'path': path,
      'method': requestOptions.method,
      'baseUrl': requestOptions.baseUrl,
      'queryParameters': requestOptions.queryParameters,
    },
    'statusCode': statusCode,
    'statusMessage': statusMessage,
  };
}