ApiCache.fromJson constructor

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

Implementation

factory ApiCache.fromJson(Map<String, dynamic> json) {
  return ApiCache(
    apiCachingBehavior:
        (json['apiCachingBehavior'] as String?)?.toApiCachingBehavior(),
    atRestEncryptionEnabled: json['atRestEncryptionEnabled'] as bool?,
    status: (json['status'] as String?)?.toApiCacheStatus(),
    transitEncryptionEnabled: json['transitEncryptionEnabled'] as bool?,
    ttl: json['ttl'] as int?,
    type: (json['type'] as String?)?.toApiCacheType(),
  );
}