BoardItem class

Constructors

BoardItem({String? doctype, String? name, String? project, String? status, String? title, int? updatedAt})
Returns a new BoardItem instance.

Properties

doctype ↔ String?
DocType is which content type the row came from: Campaign, SocialPost or Asset. The board spans all three at once, so this is what tells them apart.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
Name is the document within that type. (doctype, name) is the pair every /v1/content write addresses an item by.
getter/setter pair
project ↔ String?
Project is the brand/site sub-scope within the org. Absent for an item held at org level rather than under one brand.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is the lifecycle state: draft, in_review, approved, queued, published or archived. It decides what a reader may see — the public site pulls exactly "published" and nothing else — so it is a visibility fact, not a workflow label.
getter/setter pair
title ↔ String?
Title is the item's headline, read from its type's own title field. Empty for a document that has none.
getter/setter pair
updatedAt ↔ int?
UpdatedAt is unix seconds of the document's last write, and the key the board sorts on, newest first.
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) → BoardItem?
Returns a new BoardItem instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<BoardItem>
mapFromJson(dynamic json) → Map<String, BoardItem>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<BoardItem>>

Constants

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