PaidMediaPreview class
The paid media isn't available before the payment.
Constructors
- PaidMediaPreview({int? width, int? height, int? duration})
-
Constructs a PaidMediaPreview object.
const
-
PaidMediaPreview.fromJson(Map<
String, dynamic> json) -
Creates a PaidMediaPreview object from JSON.
factory
Properties
- duration → int?
-
Optional. Duration of the media in seconds as defined by the sender.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int?
-
Optional. Media height as defined by the sender.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → PaidMediaType
-
Type of the paid media.
no setteroverride
- width → int?
-
Optional. Media width as defined by the sender.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts a PaidMediaPreview object to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited