fromJson static method

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

Implementation

static TonWalletTransferResult? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return TonWalletTransferResult(
    isGasless: (json['is_gasless'] as bool?) ?? false,
    msgHash: (json['msg_hash'] as String?) ?? '',
    transaction: TonWalletTransaction.fromJson(
        json['transaction'] as Map<String, dynamic>?),
  );
}