Post class
- Annotations
-
- @freezed
Constructors
-
Post({required int id, required Author author, required bool authorIsModerator, required List<
CoinReward> coinRewards, required String content, required int creationDate, required bool isHidden, required bool isOwnPost, required String status, required int updationDate, required int voteCount, required int voteStatus}) -
constfactory
-
Post.fromJson(Map<
String, Object?> json) -
factory
Properties
-
no setterinherited
-
no setterinherited
-
coinRewards
→ List<
CoinReward> -
no setterinherited
- content → String
-
no setterinherited
-
copyWith
→ $PostCopyWith<
Post> -
no setterinherited
- creationDate → int
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
no setterinherited
- isHidden → bool
-
no setterinherited
- isOwnPost → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String
-
no setterinherited
- updationDate → int
-
no setterinherited
- voteCount → int
-
no setterinherited
- voteStatus → int
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited