CachedResource.fromJson constructor
Implementation
factory CachedResource.fromJson(Map<String, dynamic> json) {
return CachedResource(
url: json['url'] as String,
type: ResourceType.fromJson(json['type'] as String),
response: json.containsKey('response')
? ResponseData.fromJson(json['response'] as Map<String, dynamic>)
: null,
bodySize: json['bodySize'] as num,
);
}