Post class
Constructors
-
Post.new({int? id, String? date, String? dateGmt, Guid? guid, String? modified, String? modifiedGmt, String? password, String? slug, PostPageStatus? status, String? type, String? link, Title? title, Content? content, Excerpt? excerpt, int? authorID, List<
int> ? categoryIDs, List<int> ? tagIDs, int? featuredMediaID, bool? sticky, PostFormat? postFormat, Map<String, dynamic> ? meta, String? template, PostCommentStatus? commentStatus, PostPingStatus? pingStatus, User? author, List<Comment> ? comments, List<CommentHierarchy> ? commentsHierarchy, List<Category> ? categories, List<Tag> ? tags, Media? featuredMedia, List<Media> ? attachments}) -
Post.fromJson(Map<
String, dynamic> json)
Properties
-
attachments
↔ List<
Media> ? -
getter/setter pair
-
getter/setter pair
-
Author ID of the post
getter/setter pair
-
categories
↔ List<
Category> ? -
getter/setter pair
-
categoryIDs
↔ List<
int> ? -
List of Category IDs
getter/setter pair
-
comments
↔ List<
Comment> ? -
getter/setter pair
-
commentsHierarchy
↔ List<
CommentHierarchy> ? -
getter/setter pair
- commentStatus ↔ PostCommentStatus?
-
Comment status
getter/setter pair
- content ↔ Content?
-
Post content
getter/setter pair
- date ↔ String?
-
The date the post was published, in the site's Timezone.
getter/setter pair
- dateGmt ↔ String?
-
The date the post was published, in GMT.
getter/setter pair
- excerpt ↔ Excerpt?
-
Post excerpt
getter/setter pair
- featuredMedia ↔ Media?
-
getter/setter pair
- featuredMediaID ↔ int?
-
Featured media ID
getter/setter pair
- guid ↔ Guid?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int?
-
ID of the post
getter/setter pair
- link ↔ String?
-
getter/setter pair
-
meta
↔ Map<
String, dynamic> ? -
Meta data
getter/setter pair
- modified ↔ String?
-
getter/setter pair
- modifiedGmt ↔ String?
-
getter/setter pair
- password ↔ String?
-
Password for the post in case it needs to be password protected.
getter/setter pair
- pingStatus ↔ PostPingStatus?
-
Ping status
getter/setter pair
- postFormat ↔ PostFormat?
-
Post format
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slug ↔ String?
-
An alphanumeric identifier unique to each post.
getter/setter pair
- status ↔ PostPageStatus?
-
The state in which the post should be created (draft, publish etc.)
getter/setter pair
- sticky ↔ bool?
-
Whether the post should remain at the top of the list
getter/setter pair
-
tagIDs
↔ List<
int> ? -
List of Tag IDs
getter/setter pair
-
getter/setter pair
- template ↔ String?
-
Template used by the post
getter/setter pair
- title ↔ Title?
-
Post title
getter/setter pair
- type ↔ String?
-
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited