CollectibleItemInfo class final

Contains information about a collectible item and its last purchase

Inheritance

Constructors

CollectibleItemInfo({required int purchaseDate, required String currency, required int amount, required String cryptocurrency, required int cryptocurrencyAmount, required String url, dynamic extra, int? clientId})
Contains information about a collectible item and its last purchase
const
CollectibleItemInfo.fromJson(Map<String, dynamic> json)
Parses a CollectibleItemInfo from TDLib JSON.
factory

Properties

amount → int
The paid amount, in the smallest units of the currency
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
cryptocurrency → String
Cryptocurrency used to pay for the item
final
cryptocurrencyAmount → int
The paid amount, in the smallest units of the cryptocurrency
final
currency → String
Currency for the paid amount
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
purchaseDate → int
Point in time (Unix timestamp) when the item was purchased
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String
Individual URL for the item on https://fragment.com
final

Methods

copyWith({int? purchaseDate, String? currency, int? amount, String? cryptocurrency, int? cryptocurrencyAmount, String? url, dynamic extra, int? clientId}) → CollectibleItemInfo
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.