toJson method

Map<String, dynamic> toJson()

Serializes the entry to JSON for disk storage.

Implementation

Map<String, dynamic> toJson() => {
  'statusCode': response.statusCode,
  'headers': response.headers,
  'body': response.body,
  'cachedAt': cachedAt.toIso8601String(),
  'expiresAt': expiresAt.toIso8601String(),
  'key': key,
};