StakeOutput constructor

StakeOutput({
  1. int? value,
  2. StakeKey? key,
  3. KeyedSignature? authorization,
})

Implementation

factory StakeOutput({
  int? value,
  StakeKey? key,
  KeyedSignature? authorization,
}) {
  final _result = create();
  if (value != null) {
    _result.value = Int64(value);
  }

  if (key != null) {
    _result.key = key;
  }

  if (authorization != null) {
    _result.authorization = authorization;
  }
  return _result;
}