SuggestedPostInfo class abstract
Contains information about a suggested post.
- Available extensions
- Annotations
-
- @freezed
Constructors
- SuggestedPostInfo({@JsonKey.new(name: 'state') required String state, @JsonKey.new(name: 'price') SuggestedPostPrice? price, @JsonKey.new(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
-
map<
TResult extends Object?> (TResult $default(_SuggestedPostInfo value)) → TResult -
Available on SuggestedPostInfo, provided by the SuggestedPostInfoPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_SuggestedPostInfo value)?) → TResult? -
Available on SuggestedPostInfo, provided by the SuggestedPostInfoPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_SuggestedPostInfo value)?, {required TResult orElse()}) → TResult -
Available on SuggestedPostInfo, provided by the SuggestedPostInfoPatterns extension
A variant ofmapthat fallback to returningorElse. -
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