SessionContext.fromJson constructor

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

Implementation

factory SessionContext.fromJson(Map<String, dynamic> json) {
  return SessionContext(
    cwd: json['cwd'] as String,
    gitRoot: json['gitRoot'] as String?,
    repository: json['repository'] as String?,
    branch: json['branch'] as String?,
  );
}