CachedAssetEntry.fromJson constructor

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

Implementation

factory CachedAssetEntry.fromJson(Map<String, dynamic> json) {
  return CachedAssetEntry(
    sourceUri: json['sourceUri'] as String,
    filePath: json['filePath'] as String,
    cachedAt: DateTime.parse(json['cachedAt'] as String),
    contentType: json['contentType'] as String?,
  );
}