ProjectsUpdate class

Constructors

ProjectsUpdate({String? cacheControl, String? description, String? framework, bool? hidden, String? hiddenReason, String? license, String? name, ProjectsUpdateRepo? repo, String? slug, Map<String, String> tags = const {}, String? upstream, String? visibility})
Returns a new ProjectsUpdate instance.

Properties

cacheControl ↔ String?
CacheControl replaces the Cache-Control policy the edge serves this site's HTML under. Absent leaves it.
getter/setter pair
description ↔ String?
Description replaces the one-line summary. Absent leaves it.
getter/setter pair
framework ↔ String?
Framework replaces the build hint. It affects the NEXT build only — nothing already deployed is rebuilt.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hidden ↔ bool?
Hidden is MODERATION, and the only admin-gated field on this body: it pulls a public project out of the catalogue from admin.hanzo.ai without editing the publisher's own visibility choice, so un-hiding restores exactly what they asked for. A tenant sending it is ignored.
getter/setter pair
hiddenReason ↔ String?
HiddenReason records WHY moderation hid it, so the action can be explained and reviewed later. Admin-gated like hidden itself.
getter/setter pair
license ↔ String?
License is the terms that upstream work carries, with the same clear-versus- leave rule.
getter/setter pair
name ↔ String?
Name replaces the display name. Absent leaves it; the slug never moves with it.
getter/setter pair
repo ↔ ProjectsUpdateRepo?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug ↔ String?
Slug is the project to update, from the path. The URL is the addressing authority — a slug in the body cannot move the write to another project.
getter/setter pair
tags ↔ Map<String, String>
Tags sets the site's browser tag config: platform slug → non-secret pixel id (e.g. {"ga4":"G-…","meta":"…"}). track.js injects these first-party and the server CAPI reads them, per site. Absent LEAVES them; a present object REPLACES the set (send {} to clear). The ids are public — they ship in the page — so this is not the SECRET path (a CAPI token is sealed via POST /v1/destination).
getter/setter pair
upstream ↔ String?
Upstream credits the third-party work this project was published from, and is settable after the fact because the live demos are the ones that most need crediting. An explicit empty string CLEARS the credit; absent leaves it.
getter/setter pair
visibility ↔ String?
Visibility flips an existing project between "public" and "private". Same ONE rule as at create: public is free, private needs a paid plan.
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) → ProjectsUpdate?
Returns a new ProjectsUpdate instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ProjectsUpdate>
mapFromJson(dynamic json) → Map<String, ProjectsUpdate>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ProjectsUpdate>>

Constants

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