SuggestedPostPaid class abstract

Describes a service message about a successful payment for a suggested post.

Annotations
  • @freezed

Constructors

SuggestedPostPaid.new({@JsonKey(name: 'suggested_post_message') Message? suggestedPostMessage, @JsonKey(name: 'currency') required String currency, @JsonKey(name: 'amount') int? amount, @JsonKey(name: 'star_amount') StarAmount? starAmount})
Creates a new SuggestedPostPaid object.
const
factory
SuggestedPostPaid.fromJson(Map<String, dynamic> json)
Creates a new SuggestedPostPaid object from a JSON Map.
factory

Properties

amount int?
Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only
no setterinherited
copyWith → $SuggestedPostPaidCopyWith<SuggestedPostPaid>
Create a copy of SuggestedPostPaid with the given fields replaced by the non-null parameter values.
no setterinherited
currency String
Currency in which the payment was made. Currently, one of "XTR" for Telegram Stars or "TON" for toncoins
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
starAmount StarAmount?
Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only
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 SuggestedPostPaid to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited