fromJson static method
Inherited by: TonWalletTransactionTypeKeyChange TonWalletTransactionTypeNftTransfer TonWalletTransactionTypeOnRampDeposit TonWalletTransactionTypeTelegramGiftDelisting TonWalletTransactionTypeTelegramGiftListing TonWalletTransactionTypeTelegramGiftOfferAcceptance TonWalletTransactionTypeTelegramGiftOfferCancellation TonWalletTransactionTypeTelegramGiftOfferCreation TonWalletTransactionTypeTelegramGiftOfferDecline TonWalletTransactionTypeTelegramGiftOfferExpiration TonWalletTransactionTypeTelegramGiftPurchase TonWalletTransactionTypeTelegramGiftSale TonWalletTransactionTypeTelegramGiftTransfer TonWalletTransactionTypeTransfer
Implementation
static TonWalletTransactionTypeTelegramGiftTransfer? fromJson(
Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return TonWalletTransactionTypeTelegramGiftTransfer(
nft: TonNft.fromJson(json['nft'] as Map<String, dynamic>?)!,
isOutgoing: (json['is_outgoing'] as bool?) ?? false,
isSaved: (json['is_saved'] as bool?) ?? false,
);
}