PatchSessionIn class

Constructors

PatchSessionIn({String? cwd, String? id, String? project, bool? published, String? status, String? target, String? terminal, String? title})
Returns a new PatchSessionIn instance.

Properties

cwd ↔ String?
Cwd is where the session is working NOW. It was write-once — captured at register and never again — which is right for a run that starts in a directory and stays there, and wrong for a linked shell, which is a place a person moves around in. The console showed the directory hanzo link happened to be run from and kept showing it after the shell had walked away, so the field answered "which work is this" with an answer that was true once. A pointer, so an unchanged path is an omitted field rather than a repeated write.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the session to update, from the path.
getter/setter pair
project ↔ String?
Project tags the product this session built; Published is the author's decision to let anyone read the story (provenance.go). Both are pointers so "absent" and "cleared" are different requests.
getter/setter pair
published ↔ bool?
Published opens the session's story to the public build route; false withdraws it, and withdrawing is always allowed. PUBLISHING is refused unless the session names a Project — the one set in this same request, or the one already stored — because that route is keyed on (org, project). It widens READ access to what is already there and grants nothing else.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status moves the session to running, paused, done or error. A session that has already finished refuses any change with 409 — done and error are monotonic — and moving INTO one stamps the end time. This is the surface REPORTING what happened; a control command never writes it.
getter/setter pair
target ↔ String?
Target re-dispatches a session to a run-target (the #48 association). "" detaches.
getter/setter pair
terminal ↔ String?
Terminal publishes (or, with "", withdraws) the URL this session's live terminal can be watched at. A pointer so "absent" and "withdrawn" are different requests: a session that stops sharing must be able to say so.
getter/setter pair
title ↔ String?
Title rewrites the human line, up to 512 characters — usually because the work turned out to be something other than what it was opened as.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → PatchSessionIn?
Returns a new PatchSessionIn instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PatchSessionIn>
mapFromJson(dynamic json) → Map<String, PatchSessionIn>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PatchSessionIn>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.