SuggestedPostRefunded class abstract
Describes a service message about a payment refund for a suggested post.
- Annotations
-
- @freezed
Constructors
- SuggestedPostRefunded.new({@JsonKey(name: 'suggested_post_message') Message? suggestedPostMessage, @JsonKey(name: 'reason') required String reason})
-
Creates a new SuggestedPostRefunded object.
constfactory
-
SuggestedPostRefunded.fromJson(Map<
String, dynamic> json) -
Creates a new SuggestedPostRefunded object from a JSON Map.
factory
Properties
-
copyWith
→ $SuggestedPostRefundedCopyWith<
SuggestedPostRefunded> -
Create a copy of SuggestedPostRefunded
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- reason → String
-
Reason for the refund. Currently, one of "post_deleted" if the post was
deleted within 24 hours of being posted or removed from scheduled messages
without being posted, or "payment_refunded" if the payer refunded their payment.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suggestedPostMessage → Message?
-
Optional. Message containing the suggested post. Note that the Message
object in this field will not contain the reply_to_message field even
if it itself is a reply.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this SuggestedPostRefunded to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited