factory CacheBehavior.fromJson(Map<String, dynamic> json) { return CacheBehavior( behavior: (json['behavior'] as String?)?.toBehaviorEnum(), ); }