StoredCheckpoint.fromJson constructor

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

Implementation

factory StoredCheckpoint.fromJson(
  Map<String, dynamic> json, {
  ValueSerializer? serializer,
}) {
  serializer ??= driftRuntimeOptions.defaultSerializer;
  return StoredCheckpoint(
    accountKey: serializer.fromJson<String>(json['accountKey']),
    subscriptionId: serializer.fromJson<String>(json['subscriptionId']),
    seq: serializer.fromJson<String>(json['seq']),
    updatedAt: serializer.fromJson<DateTime>(json['updatedAt']),
  );
}