StoredRowState.fromJson constructor
StoredRowState.fromJson(
- Map<
String, dynamic> json, { - ValueSerializer? serializer,
Implementation
factory StoredRowState.fromJson(
Map<String, dynamic> json, {
ValueSerializer? serializer,
}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return StoredRowState(
accountKey: serializer.fromJson<String>(json['accountKey']),
tableId: serializer.fromJson<String>(json['tableId']),
rowKey: serializer.fromJson<String>(json['rowKey']),
phase: serializer.fromJson<String>(json['phase']),
actionId: serializer.fromJson<String?>(json['actionId']),
attemptCount: serializer.fromJson<int>(json['attemptCount']),
nextRetryAt: serializer.fromJson<DateTime?>(json['nextRetryAt']),
errorCode: serializer.fromJson<String?>(json['errorCode']),
errorMessage: serializer.fromJson<String?>(json['errorMessage']),
lastServerSeq: serializer.fromJson<String?>(json['lastServerSeq']),
pendingValuesJson: serializer.fromJson<String?>(
json['pendingValuesJson'],
),
tombstone: serializer.fromJson<bool>(json['tombstone']),
updatedAt: serializer.fromJson<DateTime>(json['updatedAt']),
);
}