UnstakeBody constructor

UnstakeBody({
  1. PublicKeyHash? operator,
  2. ValueTransferOutput? withdrawal,
  3. int? fee,
  4. int? nonce,
})

Implementation

factory UnstakeBody({
  PublicKeyHash? operator,
  ValueTransferOutput? withdrawal,
  int? fee,
  int? nonce,
}) {
  final _result = create();
  if (operator != null) {
    _result.operator = operator;
  }
  if (withdrawal != null) {
    _result.withdrawal = withdrawal;
  }
  if (fee != null) {
    _result.fee = Int64(fee);
  }
  if (nonce != null) {
    _result.nonce = Int64(nonce);
  }
  return _result;
}