CachingConfig.fromJson constructor

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

Implementation

factory CachingConfig.fromJson(Map<String, dynamic> json) {
  return CachingConfig(
    cachingKeys: (json['cachingKeys'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    ttl: json['ttl'] as int?,
  );
}