Input constructor

Input({
  1. Stake? stake,
  2. Unstake? unstake,
  3. Withdraw? withdraw,
  4. String? smartContractAddress,
  5. Protocol? protocol,
  6. Blockchain? blockchain,
})

Implementation

factory Input({
  Stake? stake,
  Unstake? unstake,
  Withdraw? withdraw,
  $core.String? smartContractAddress,
  Protocol? protocol,
  Blockchain? blockchain,
}) {
  final $result = create();
  if (stake != null) {
    $result.stake = stake;
  }
  if (unstake != null) {
    $result.unstake = unstake;
  }
  if (withdraw != null) {
    $result.withdraw = withdraw;
  }
  if (smartContractAddress != null) {
    $result.smartContractAddress = smartContractAddress;
  }
  if (protocol != null) {
    $result.protocol = protocol;
  }
  if (blockchain != null) {
    $result.blockchain = blockchain;
  }
  return $result;
}