DownloadRow.fromJson constructor

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

Implementation

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