UndoCommandJournalEntry.fromJson constructor

UndoCommandJournalEntry.fromJson(
  1. Map<String, Object?> json
)

Creates a journal entry from JSON.

Implementation

factory UndoCommandJournalEntry.fromJson(Map<String, Object?> json) {
  return UndoCommandJournalEntry(
    type: (json['type'] as String?) ?? '',
    payload: _asObjectMap(json['payload']),
  );
}