Post class
- Available Extensions
- Annotations
-
- @immutable
Constructors
-
Post({required int id, required String slug, required ContentStatus status, required String link, required int author, required Status commentStatus, required Status pingStatus, required bool sticky, required PostFormat format, required Map<
String, dynamic> self, DateTime? date, DateTime? dateGmt, String? password, Content? guid, DateTime? modified, DateTime? modifiedGmt, String? type, Content? title, Content? content, Content? excerpt, int? featuredMedia, String? template, dynamic meta, List<int> ? categories, List<int> ? tags, Links? links, String? featuredImageUrl, AuthorMeta? authorMeta}) -
const
-
Post.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
final
-
Field generated by https://wordpress.org/plugins/wp-rest-api-user-meta/
final
-
categories
→ List<
int> ? -
final
- commentStatus → Status
-
final
- content → Content?
-
final
- date → DateTime?
-
final
- dateGmt → DateTime?
-
final
- excerpt → Content?
-
final
- featuredImageUrl → String?
-
Field generated by https://wordpress.org/plugins/rest-api-featured-image/ plugin
final
- featuredMedia → int?
-
final
- format → PostFormat
-
final
- guid → Content?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int
-
final
- link → String
-
final
- links → Links?
-
final
- meta → dynamic
-
final
- modified → DateTime?
-
final
- modifiedGmt → DateTime?
-
final
- password → String?
-
final
- pingStatus → Status
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
self
→ Map<
String, dynamic> -
Represents the entire JSON body as a Map.
final
- slug → String
-
final
- status → ContentStatus
-
final
- sticky → bool
-
final
-
final
- template → String?
-
final
- title → Content?
-
final
- type → String?
-
final
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 ==(
covariant Post other) → bool -
The equality operator.
override