CacheableResult constructor

CacheableResult({
  1. ResultMetaObject? meta,
  2. required CacheableResultCacheScope cacheScope,
  3. required String resultType,
  4. required int ttlMs,
  5. Map<String, Object?>? extra,
})

Implementation

CacheableResult({
  ResultMetaObject? meta,
  required CacheableResultCacheScope cacheScope,
  required String resultType,
  required int ttlMs,
  Map<String, Object?>? extra,
}) : super.build({
        ...?extra,
        if (meta != null) '_meta': $encode(meta),
        'cacheScope': $encode(cacheScope),
        'resultType': $encode(resultType),
        'ttlMs': $encode(ttlMs),
      });