TransferFeeConfig.fromAccountBytes constructor

TransferFeeConfig.fromAccountBytes(
  1. List<int> accountBytes
)

Implementation

factory TransferFeeConfig.fromAccountBytes(List<int> accountBytes) {
  final decode = _Utils.decodeFromAccount(accountBytes);
  return TransferFeeConfig(
      transferFeeConfigAuthority: decode["transferFeeConfigAuthority"],
      withdrawWithheldAuthority: decode["withdrawWithheldAuthority"],
      withheldAmount: decode["withheldAmount"],
      olderTransferFee: TransferFee.fromJson(decode["olderTransferFee"]),
      newerTransferFee: TransferFee.fromJson(decode["newerTransferFee"]));
}