StoredCheckpoint.fromJson constructor
StoredCheckpoint.fromJson(
- Map<
String, dynamic> json, { - 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']),
);
}