TonWalletTransfer class abstract
Describes a service message about a transfer with a TON wallet.
- Available extensions
- Annotations
-
- @freezed
Constructors
- TonWalletTransfer({@JsonKey.new(name: 'transaction_id') required String transactionId, @JsonKey.new(name: 'peer_address') required String peerAddress, @JsonKey.new(name: 'amount') required String amount, @JsonKey.new(name: 'comment') String? comment})
-
Creates a TonWalletTransfer.
constfactory
-
TonWalletTransfer.fromJson(Map<
String, dynamic> json) -
Creates a TonWalletTransfer from JSON.
factory
Properties
- amount → String
-
Amount in the smallest currency units, as a decimal string.
Negative for outgoing transfers.
no setterinherited
- comment → String?
-
Optional. Plaintext comment. Omitted if encrypted.
no setterinherited
-
copyWith
→ $TonWalletTransferCopyWith<
TonWalletTransfer> -
Create a copy of TonWalletTransfer
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- peerAddress → String
-
Address of the other wallet in the transfer.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transactionId → String
-
Transaction identifier. May be empty if the transaction has not been sent.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_TonWalletTransfer value)) → TResult -
Available on TonWalletTransfer, provided by the TonWalletTransferPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_TonWalletTransfer value)?) → TResult? -
Available on TonWalletTransfer, provided by the TonWalletTransferPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_TonWalletTransfer value)?, {required TResult orElse()}) → TResult -
Available on TonWalletTransfer, provided by the TonWalletTransferPatterns extension
A variant ofmapthat fallback to returningorElse. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this TonWalletTransfer to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited