CacheSummaryRow.fromJson constructor
- Map<
String, dynamic> json, { - ValueSerializer? serializer,
Implementation
factory CacheSummaryRow.fromJson(Map<String, dynamic> json,
{ValueSerializer? serializer}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return CacheSummaryRow(
id: serializer.fromJson<int>(json['id']),
size: serializer.fromJson<int>(json['size']),
modified: serializer.fromJson<PreciseDateTime?>(json['modified']),
maxSize: serializer.fromJson<int?>(json['maxSize']),
);
}