StarAmount constructor

const StarAmount({
  1. @JsonKey.new(name: 'amount') required int amount,
  2. @JsonKey.new(name: 'nanostar_amount') int? nanostarAmount,
})

Creates a new StarAmount object.

Implementation

const factory StarAmount({
  /// Integer amount of Telegram Stars, rounded to 0; can be negative
  @JsonKey(name: 'amount') required int amount,

  /// 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
  @JsonKey(name: 'nanostar_amount') int? nanostarAmount,
}) = _StarAmount;