PublishInput class

Constructors

PublishInput({String? doctype, String? name, String? scheduleAt})
Returns a new PublishInput instance.

Properties

doctype ↔ String?
DocType is the content type holding the item: Campaign, SocialPost or Asset. Any other name is refused as an unknown content type.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
Name is the document within that type — the item to distribute. Its caption, media and channel list come off the stored document, so this names WHICH item and says nothing about what goes out.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scheduleAt ↔ String?
ScheduleAt hands a future go-live to the channel's own scheduler, as an ISO-8601 time. Empty posts now.
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) → PublishInput?
Returns a new PublishInput instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PublishInput>
mapFromJson(dynamic json) → Map<String, PublishInput>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PublishInput>>

Constants

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