StarAmount class abstract
This object describes an amount of Telegram Stars.
- Annotations
-
- @freezed
Constructors
- StarAmount.new({@JsonKey(name: 'amount') required int amount, @JsonKey(name: 'nanostar_amount') int? nanostarAmount})
-
Creates a new StarAmount object.
constfactory
-
StarAmount.fromJson(Map<
String, dynamic> json) -
Creates a new StarAmount object from a JSON Map.
factory
Properties
- amount → int
-
Integer amount of Telegram Stars, rounded to 0; can be negative
no setterinherited
-
copyWith
→ $StarAmountCopyWith<
StarAmount> -
Create a copy of StarAmount
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- nanostarAmount → int?
-
Optional. The number of 1/1000000000 shares of Telegram Stars;
from -999999999 to 999999999; can be negative if and only if
amount is non-positive
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this StarAmount to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited