TonWalletTransactionTypeTransfer.fromJson constructor

TonWalletTransactionTypeTransfer.fromJson(
  1. Map<String, dynamic> json
)

Parses a TonWalletTransactionTypeTransfer from TDLib JSON.

Implementation

factory TonWalletTransactionTypeTransfer.fromJson(
  Map<String, dynamic> json,
) => TonWalletTransactionTypeTransfer(
  amount: _readInt(json['amount']),
  isGasless: _readBool(json['is_gasless']),
  comment: _readString(json['comment']),
  isCommentEncrypted: _readBool(json['is_comment_encrypted']),
);