CacheRow.fromJson constructor

CacheRow.fromJson(
  1. Map<String, dynamic> json, {
  2. ValueSerializer? serializer,
})

Implementation

factory CacheRow.fromJson(Map<String, dynamic> json,
    {ValueSerializer? serializer}) {
  serializer ??= driftRuntimeOptions.defaultSerializer;
  return CacheRow(
    checksum: serializer.fromJson<String>(json['checksum']),
  );
}