RequestCacheKey.fromJson constructor

RequestCacheKey.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory RequestCacheKey.fromJson(Map<String, dynamic> json) {
  return RequestCacheKey._(
    path: json['path'] as String,
    method: json['method'] as String,
    cacheExpirationDate: DateTime.tryParse(
      json['cacheExpirationDate'] as String,
    ),
  );
}