WorktreeSessionInfo.fromJson constructor

WorktreeSessionInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory WorktreeSessionInfo.fromJson(Map<String, dynamic> json) {
  return WorktreeSessionInfo(
    originalCwd: json['originalCwd'] as String,
    worktreePath: json['worktreePath'] as String,
    worktreeName: json['worktreeName'] as String,
    originalBranch: json['originalBranch'] as String?,
    sessionId: json['sessionId'] as String,
    hookBased: json['hookBased'] as bool?,
  );
}