SuggestedPostInfo class abstract
Contains information about a suggested post.
- Annotations
-
- @freezed
Constructors
- SuggestedPostInfo.new({@JsonKey(name: 'state') required String state, @JsonKey(name: 'price') SuggestedPostPrice? price, @JsonKey(name: 'send_date') int? sendDate})
-
Creates a new SuggestedPostInfo object.
constfactory
-
SuggestedPostInfo.fromJson(Map<
String, dynamic> json) -
Creates a new SuggestedPostInfo object from a JSON Map.
factory
Properties
-
copyWith
→ $SuggestedPostInfoCopyWith<
SuggestedPostInfo> -
Create a copy of SuggestedPostInfo
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- price → SuggestedPostPrice?
-
Optional. Proposed price of the post. If the field is omitted, then the post is unpaid.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendDate → int?
-
Optional. Proposed send date of the post. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user or administrator who approves it.
no setterinherited
- state → String
-
State of the suggested post. Currently, it can be one of "pending", "approved", "declined".
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this SuggestedPostInfo to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited