ProjectsFork class
Constructors
- ProjectsFork({String? name, String? slug, String? target, String? variant})
- Returns a new ProjectsFork instance.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- name ↔ String?
-
target project name (optional; defaults to the parent's title)
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slug ↔ String?
-
parent slug to fork — catalog template or published project (required)
getter/setter pair
- target ↔ String?
-
Target overrides the derived project slug (optional; defaults to the parent slug). Kept distinct from Slug so callers can rename on fork.
getter/setter pair
- variant ↔ String?
-
Variant picks a template's format/page/theme (optional; defaults to the template's first shape). This is the axis the catalog used to spend sibling slugs on, so it is expressed here, where the user's preference is.
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) → ProjectsFork? -
Returns a new ProjectsFork instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< ProjectsFork> -
mapFromJson(
dynamic json) → Map< String, ProjectsFork> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< ProjectsFork> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.