Cache.fromJson constructor

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

Implementation

factory Cache.fromJson(Map<String, dynamic> json) {
  return Cache(
    cacheId: CacheId.fromJson(json['cacheId'] as String),
    securityOrigin: json['securityOrigin'] as String,
    storageKey: json['storageKey'] as String,
    storageBucket: json.containsKey('storageBucket')
        ? storage.StorageBucket.fromJson(
            json['storageBucket'] as Map<String, dynamic>)
        : null,
    cacheName: json['cacheName'] as String,
  );
}