ProjectsRelease class

Constructors

ProjectsRelease({bool? active, int? bytes, int? createdAt, int? objects, String? releaseId, String? slug, String? source_, String? url})
Returns a new ProjectsRelease instance.

Properties

active ↔ bool?
Active is whether this is the release the site is SERVING right now. Exactly one release of a site is active; the others are kept so they can be activated again, until retention reclaims them.
getter/setter pair
bytes ↔ int?
Bytes is their total size in bytes.
getter/setter pair
createdAt ↔ int?
CreatedAt is when the release was cut, as Unix seconds — not when it was last activated.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
objects ↔ int?
Objects is how many files the release holds.
getter/setter pair
releaseId ↔ String?
ReleaseID is derived from a DIGEST of the release's own manifest, so identical content is the same release and a release can never be confused with another one. Activating an older id IS the rollback.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug ↔ String?
Slug is the site this release belongs to.
getter/setter pair
source_ ↔ String?
Source is what the release was cut from — the build output or upload it was promoted out of.
getter/setter pair
url ↔ String?
URL is where the site serves. Present only on the ACTIVE release, since an inactive one is not answering anywhere.
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) → ProjectsRelease?
Returns a new ProjectsRelease instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ProjectsRelease>
mapFromJson(dynamic json) → Map<String, ProjectsRelease>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ProjectsRelease>>

Constants

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