FileEvent.fromMap constructor

FileEvent.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory FileEvent.fromMap(Map<String, dynamic> map) {
  return FileEvent(
    type: FileEventType.values[map['type'] as int],
    filePath: map['filePath'] as String,
    newFilePath: map['newFilePath'] as String?,
    processId: map['processId'] as int,
    processName: map['processName'] as String?,
    timestamp: map['timestamp'] as int,
  );
}